Skip to main content

Posts

Featured

Running native PHP in AWS Lambda

Last year, i involved in agent commission system development like how insurance company or any other multilevel company does. End up, i stuck at a level where all big processes not optimized and not that stable.


Current configuration is using Google Cloud App Engine (GAE) with auto scaling. The main objective is to use big amount of RAM to complete all processes. By the time the commission process starts, GAE service will auto scale with CPU with matrix 20%. Means that, the service scalling once the CPU usage reach 20%. Just because it almost impossible to handle it in GAE properly as GAE Flex not allow zero minimum instance, i keep looking new solution until now.




Today, i found that Lambda can have 3GB RAM/15 minutes timeout to be used each invocation. Plus it able to run native PHP.



You can head straight to my repo https://github.com/ihsanberahim/boilerplate-lambda-php or down here the summary what or how to do. Optional Prerequisite Steps1. Prepare Instance prepare instance to com…

Latest Posts

Avoid Autofill on the Woocommerce Checkout Shipping Address

Automatic Make Public on Google Cloud Storage Object

Deploy PHP App using GCP Cloud Build

Solve DEADLINE_EXCEED error while deploying app with gcloud

Ionic - Force change and refresh tab root

Start Fresh Wordpress using WP-CLI and Valet

Deploy laravel app in kubenetes locally

Improve BackpackForLaravel Save And Back Redirection

Auto restart dead mysql

Trigger IonItemSliding using click event