The “gateway” service is responsible for providing Ditto’s HTTP + WebSocket API.
Model
The gateway service has no model by its own, but uses the model of all the services it provides the HTTP + WebSocket API for.
Signals
The gateway service has no signals by its own, but uses the signals of all the services it provides the HTTP + WebSocket API for.
Persistence
The gateway service has no persistence by its own.
Tasks
- translate HTTP request to commands and translates command responses back to HTTP responses
- translate Ditto Protocol messages incoming via the WebSocket to commands and translates command responses back to Ditto Protocol response messages
- accepts Ditto Protocol messages incoming via the Cloud Events HTTP Binding
- subscribe for events in Ditto cluster and emits change notifications via connected WebSocket clients or via SSEs