Skip to content

Commit c7d6866

Browse files
committed
Document queue/table usage
1 parent 2dc967b commit c7d6866

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,18 @@ corresponding access token for it. To get a permanent access token for
132132
use, you'd need to create a [system user](https://business.facebook.com/latest/settings/system_users)
133133
with full control permissions to the WhatsApp Business API (app).
134134

135+
## Scalability and Performance
136+
137+
In order to quickly and efficiently process incoming messages, the library uses
138+
Azure Storage Queues to queue incoming messages from WhatsApp, which provides
139+
a reliable and scalable way to handle incoming messages. It also uses Azure Table Storage
140+
to detect duplicate messages and avoid processing the same message multiple times.
141+
142+
If `QueueServiceClient` and `TableServiceClient` are registered in the DI container
143+
before invoking `UseWhatsApp`, the library will automatically use them. Otherwise,
144+
it will register both services using the `AzureWebJobsStorage` connection string,
145+
therefore sharing storage with the Azure Functions runtime.
146+
135147
## License
136148

137149
We offer this project under a dual licensing model, tailored to the needs

0 commit comments

Comments
 (0)