This repository contains Infra-as-Code templates that create cloud services hosting WhatsApp Business API (On-Premises) with desired throughput on various public cloud platforms, including AWS, Azure & GCP.
For more details related to WhatsApp Business API (On-Premises), please visit the documentation at: https://developers.facebook.com/docs/whatsapp/on-premises.
- Tailored to different messaging needs: The templates support selections of different message throughputs and message types.
- Easy to get started: The templates automatically provision resources based on the combination of message throughput and message type, so that users don’t need to worry about the setup and configuration details.
- Highly configurable: The templates offer configuration parameters that can be adjusted to fit your environment.
We have used the Outbound Load Testing method to measure the maximum throughput of each template under different message type options in different cloud environments.
Platform | API Version | Max Throughput |
---|---|---|
AWS | v2.45.2 | 350 |
Azure | v2.45.2 | 200 |
GCP | v2.45.2 | 300 |
Disclaimer: Although higher throughput has been achieved with certain templates under the specific conditions, Meta does not commit to technical support for throughput that is > 250 MPS. Please use at your own discretion.
- Infra definition: CloudFormation
- Database: Amazon Aurora
- Container management: Amazon Elastic Container Service (Amazon ECS)
- Infra definition: Terraform
- Database: MySQL in VM
- Container management: Kubernetes
- Infra definition: Terraform
- Database: MySQL in VM
- Container management: Kubernetes
- Clone or download files based on your cloud platform from the
src
directory. - Follow the step-by-step guide below to deploy the templates based on your desired throughput and message type:
- AWS: https://developers.facebook.com/docs/whatsapp/on-premises/get-started/installation/aws
- Azure: https://developers.facebook.com/docs/whatsapp/on-premises/get-started/installation/azure
- GCP: https://developers.facebook.com/docs/whatsapp/on-premises/get-started/installation/gcp
We highly recommend you to deploy the templates in a testing environment first before deploying in production. We have verified the templates under the conditions documented in the Benchmark Results section, however, we are unable to guarantee the maximum throughput if alterations are made to the templates.
If you have any feedback on how to improve the templates, please kindly file an issue or a pull request in this repository. We will follow up on them in our best efforts.
For any other types of issues, please contact Direct Support.
WhatsApp Business API (On-Premises) Deployment Templates is MIT licensed.