I need guidance on how to show live feeds on my website from a software...All ideas and solutions are highly welcomed....

Dani AI

Generated

: is right that Ajax solves the browser side of live updates, but Ajax alone is just the delivery mechanism. The events your software generates must first be made available to a web server or a push service. Two fundamental choices: have the software push events into a web-accessible place, or have the website pull events from the software.

A practical path:

  1. Make the software send events (HTTP POST JSON to a REST endpoint, write to a DB, or publish to a message broker like Redis/RabbitMQ). If changing the software is impossible, read its logs or watch DB changes with a small agent.
  2. Serve those events to browsers. Simple option: Ajax polling to an endpoint that returns only events since a given timestamp/ID. Lower-latency options: Server-Sent Events for uni-directional streams (Server-Sent Events) or WebSockets for full duplex (WebSocket). Use a small push process (Node.js, a PHP WebSocket lib, or a broker bridge) to broadcast incoming events to connected clients.
  3. Add auth, TLS, CORS and rate limiting. Log incoming events immediately for debugging.

Troubleshooting checklist: confirm the software actually POSTs events (curl), inspect server logs, verify timestamps/sequence numbers, check CORS and firewall/NAT, and ensure any load balancer supports sticky sessions or a pub/sub bridge for WebSockets. For a quick working prototype, POST+Ajax polling is easiest; move to SSE/WebSockets when low latency or scale becomes necessary.

Recommended Answers

All 2 Replies

I think the easiest way is to go the ajax way,
this can collect things from the server and show them on the webpage dynamicly without refreshing the page

Thanx for giving me a hint...If am going to use Ajax then how can i link the events happening on the software to my website...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.