![]() ![]() Each event will only be delivered to a single consumer, so as your volume increases, just scale up! This process works well whether you are using Docker Swarm, a Procfile on Heroku, your own webserver, and most other environments. Relay Consumers can scale easily, simply by running multiple instances of your Relay.Consumer process. Think of Relay Consumers like a background worker system for all your calling and messaging needs. Relay Consumers abstract all the setup of connecting to Relay and automatically dispatches workers to handle requests so you can concentrate on writing your code without having to worry about multi-threading or blocking, everything just works. Relay ConsumerĪ Relay.Consumer creates a long running process, allowing you to respond to incoming requests and events in realtime. There are a few ways to get started, depending on your needs: Relay.Consumer, Relay.Task, and Relay.Client. In order to use the Node.js client, you must get your project and token from your SignalWire dashboard. ![]() The Node.js SDK can be used to get up and running with Relay quickly and easily. The Node.js SDK may be used with Node.js 8.0 or greater. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |