Pushpin
Stateless reverse proxy that adds realtime push to an HTTP backend through GRIP.
- Provider
- default
- Category
- Edge
- Official docs
- https://pushpin.org/docs/about/
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| ackIntervalSeconds | integer | — | no | — | inherited |
| autoscaling | boolean | — | no | false | inherited |
| channelAssignment | enum | random | hash | sticky | no | random | inherited |
| drainOnScaleIn | boolean | — | no | false | inherited |
| gripProtocol | boolean | — | no | true | inherited |
| managed | boolean | — | no | false | ▸ false |
| protocol | enum | websocket | sse | long-poll | grpc-stream | udp-multicast | no | websocket | ▸ websocket |
| publishApiPort | integer | — | no | 5561 | inherited |
| pushFallback | boolean | — | no | false | inherited |
| sequenceNumbers | boolean | — | no | false | ▸ true |
| stampedeGuard | boolean | — | no | false | inherited |
| stateful | boolean | — | no | true | ▸ false |
| stickyRoutingRequired | boolean | — | no | false | inherited |
| subscriptionsPerUser | integer | — | no | — | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
When a gateway holding millions of sockets restarts, every client reconnects at once and the gateway asks the coordination service about each of them. Without a stampede guard that lookup storm takes the coordination service down too.
- — all of these hold:
- — the node has at least one synchronous outgoing edge to a coordination-service
- — the node's `stampedeGuard` is false
With heavy-tail traffic a few channels carry most of the load. Assigning channels at random lands those hot channels on arbitrary hosts, and every tenant sharing a host suffers for it.
- — all of these hold:
- — the node's `channelAssignment` is "random"
- — the design requirement `traffic.skew` is "heavy-tail"
Scaling a gateway down kills every live WebSocket on the removed instance at once. Without a drain step those clients all reconnect together.
- — all of these hold:
- — the node's `autoscaling` is true
- — the node's `drainOnScaleIn` is false
nodes:
- { id: "pushpin", component: "pushpin" }# yaml-language-server: $schema=../../schema/component.schema.json # Pushpin: reverse proxy that adds realtime push to an ordinary HTTP backend through the GRIP # protocol. "About Pushpin" states instances do not talk to each other and sticky routing is not # needed, lists WebSocket, HTTP streaming and HTTP long-polling as client transports, documents # sequence IDs and message de-duping, and gives the publish control API on port 5561. schemaVersion: "1" type: "component" id: "pushpin" kind: "realtime-gateway" provider: "default" docs: "https://pushpin.org/docs/about/" defaults: protocol: "websocket" stateful: false sequenceNumbers: true managed: false properties: gripProtocol: type: "boolean" default: true publishApiPort: type: "integer" default: 5561 stickyRoutingRequired: type: "boolean" default: false