Problem StatementpiStats enables it’s clients to analyse the users on their site and send Push Notifications to engage and retain them for a longer duration. For this purpose the clients’ register their users’ on piStats using piStats SDKs. The user base registered on piStats is unevenly distributed across different clients and their properties and the registration load is unpredictable - it is usually high for either first release with piStats integration or on a day when a special event occurs like elections. To handle the unpredictable load piStats needs to scale up or down as the need occurs.
Solution and FlowTo handle the load of sudden spurt of registration and subscription and to remove the overhead of scaling up and down to hand in accordance with the load piStats utilizes AWS Lambda architecture. AWS Lambda is an event driven service from Amazon. Whenever a new client starts using piStats and a release rolls out after integration, piStats observes a sudden surge of events. With this surge of event AWS Lambda architecture scales up easily and handles all events without us having to intervene and removes the overhead of handling the load manually. When the load reduces AWS Lambda architecture scales down itself and reduces the number of servers that had started to handle the sudden spurt of events.
- AWS Lambda
- Amazon RDS
- Amazon Kinesis