About the client
The client develops tools that estimate groundwater levels from sedimentation data. Its scientific method existed as a Python script: accurate, but not something authenticated users could call as a dependable service. The client wanted the same logic delivered as a production application.
Heavy scientific code behind a secure API
- Access control. Users had to be authenticated before any calculation ran.
- Heavy computation. Calculations were demanding enough to exhaust runtime resources.
- Timeouts. Long-running executions risked hitting API Gateway timeouts.
- Storage growth. Sedimentation result files accumulated and needed regular clean-up.
- Peaks in demand. Compute capacity had to scale when many calculation requests arrived at once.
What FiftyFive built
FiftyFive provided custom software development, backend engineering and cloud deployment. The team: deployed the Python groundwater analysis on AWS Lambda for event-driven, auto-scaling execution; built an API service on Lambda that handles authentication, request routing and execution triggers; optimised the Python code to cut execution time and computation overhead; configured Lambda concurrency scaling for variable workloads; scheduled an EventBridge job that deletes outdated groundwater-level data automatically; added CloudWatch monitoring and performance logging.
How the solution works
Request and authentication
- A user's calculation request arrives through the API.
- An API-layer Lambda function authenticates the user, routes the request and triggers the calculation, so no computation runs for an unauthenticated caller.
Calculation
- The optimised Python groundwater model runs as a Lambda function.
- Lambda's concurrency scaling adds capacity as requests increase, so peak periods do not queue behind a fixed number of servers.
Housekeeping
- An EventBridge schedule runs as a cron job and deletes outdated groundwater-level result files, keeping storage from growing without limit.
Monitoring
- CloudWatch collects logs and performance metrics, giving the team ongoing visibility of execution times and failures.
Technology stack
What the solution enabled
Business transformation
Per calculation
Clean-up of outdated result files
Production service the client operates
2–3 minutes per calculation
The optimised architecture brought groundwater-level processing time down to 2–3 minutes.
Authenticated access only
Every calculation runs behind user authentication.
Scaling without fixed servers
Lambda concurrency scaling handles peaks in calculation requests.
Automatic clean-up
Scheduled deletion removes outdated result files without manual work.
FiftyFive Technologies turned a European environmental-science company's Python script for calculating groundwater levels from sedimentation data into a production cloud service. The script runs on AWS Lambda behind an authenticated API, with Lambda concurrency scaling for peak demand, an Amazon EventBridge schedule that deletes outdated result files, and Amazon CloudWatch monitoring. After FiftyFive optimised the Python code, a groundwater-level calculation completes in 2–3 minutes, and the client now operates the application in production.
Technical questions
How do you turn a Python research script into a production service?
For a European environmental-science company, FiftyFive Technologies deployed an optimised Python groundwater model on AWS Lambda behind an authenticated API, configured concurrency scaling for peak demand, scheduled clean-up of old result files with Amazon EventBridge and added Amazon CloudWatch monitoring. A calculation now completes in 2–3 minutes.