Get the latest tech news

HTTP Feeds: a minimal specification for polling events over HTTP


Asynchronous event streaming and data replication with plain HTTP APIs.

A client calls the endpoint with the last known event id as lastEventId query parameter in an endless loop. If the response is an empty array, the client reached the end of the stream and waits some time to make another call to get events that occured in the meantime. The server then sends the response (with the new events or an empty array) and the client can immediately perform another call.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of feeds

feeds

Photo of HTTP

HTTP

Photo of polling events

polling events

Related news:

News photo

Show HN: Faasta – A self-hosted Serverless platform for WASM-wasi-HTTP in Rust

News photo

Show HN: Dish: A lightweight HTTP and TCP socket monitoring tool written in Go

News photo

Kill your Feeds – Stop letting algorithms dictate what you think