HTTP Feeds: a minimal specification for polling events over HTTP
Published on: 2025-08-07 05:12:15
HTTP Feeds
Asynchronous event streaming and data replication with plain HTTP APIs.
HTTP feeds is a minimal specification for polling events over HTTP:
An HTTP feed provides a HTTP GET endpoint
that returns a chronological sequence (!) of events
serialized in CloudEvents event format
in batched responses using the media type application/cloudevents-batch+json
and respects the lastEventId query parameter to scroll through further items
query parameter to scroll through further items to support infinite polling for real-time feed subscriptions.
HTTP feeds can be used to decouple systems asynchronously without message brokers, such as Kafka or RabbitMQ.
Example
GET /inventory HTTP / 1.1 Host : https://example.http-feeds.org
HTTP / 1.1 200 OK Content-Type : application/cloudevents-batch+json [{ "specversion" : "1.0", "type" : "org.http-feeds.example.inventory", "source" : "https://example.http-feeds.org/inventory", "id" : "1c6b8c6e-d8d0-4a91-b51c-1f56bd04c758", "time" : "2021-01
... Read full article.