Skip to main content

What Are Apps?

Apps in EnSync represent your services or applications that publish and subscribe to events. Each app has unique credentials for authentication and encryption.

App Components

Every app consists of three key components:

Creating Apps

Apps are created in the EnSync Dashboard or programmatically via the API. When you create an app, you receive:
  • appKey (for authentication)
  • appId (public identifier)
  • appSecret (for decryption)
See Create Access Key in the API Reference for programmatic creation.

How Apps Work

Publishing Events

When you publish an event, you specify recipient appIds:
EnSync encrypts the event for each recipient using their appId.

Subscribing to Events

Your app subscribes to events using its appKey:
EnSync decrypts events using your appSecret.

App Permissions

Apps have two types of permissions:
  • send: Event paths this app can publish to
  • receive: Event paths this app can subscribe to
Permissions are enforced by EnSync. Attempting to publish or subscribe to unauthorized event paths will fail.

Multiple Workers

You can run multiple workers (client instances) with the same appKey to scale horizontally. EnSync coordinates event delivery across workers automatically.