Subscription

Noun · Development

Definitions

  1. A persistent connection or registration that delivers data to a client as it changes, rather than requiring repeated polling. In GraphQL, a subscription opens a WebSocket to push real-time updates; in reactive libraries like RxJS, it represents an active listener on an Observable that must be unsubscribed to avoid memory leaks.

    In plain English: A setup where you say 'notify me whenever this changes' and then automatically receive updates in real time.

    Example: "The chat uses a GraphQL subscription so new messages appear instantly without polling the server every second."

Related Terms