# How to Turn Long-Running Python Simulations Into a Self-Service Platform

DevFeed: [How to Turn Long-Running Python Simulations Into a Self-Service Platform](<https://devfeed.tech/articles/how-to-turn-long-running-python-simulations-into-a-self-service-platform-92867.md>)

Original publisher: [Read original article](<https://towardsdatascience.com/how-to-turn-long-running-python-simulations-into-a-self-service-platform/>)

Author: Anand Rawat

Published: 2026-10-21T14:00:00Z

Content type: article

Language: en

Sources: [Towards Data Science](<https://devfeed.tech/sources/towards-data-science.md>)

Topics: [self-service](<https://devfeed.tech/topics/self-service.md>), [platform engineering automation](<https://devfeed.tech/topics/platform-engineering-automation.md>), [internal developer platform automation](<https://devfeed.tech/topics/internal-developer-platform-automation.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [AWS Step Functions](<https://devfeed.tech/topics/aws-step-functions.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud-computing](<https://devfeed.tech/tags/cloud-computing.md>), [data](<https://devfeed.tech/tags/data.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [editor-s-picks](<https://devfeed.tech/tags/editor-s-picks.md>), [failure](<https://devfeed.tech/tags/failure.md>), [failure-recovery](<https://devfeed.tech/tags/failure-recovery.md>), [first](<https://devfeed.tech/tags/first.md>), [i](<https://devfeed.tech/tags/i.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [platform](<https://devfeed.tech/tags/platform.md>), [python](<https://devfeed.tech/tags/python.md>), [queues](<https://devfeed.tech/tags/queues.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [reproducibility](<https://devfeed.tech/tags/reproducibility.md>), [running](<https://devfeed.tech/tags/running.md>), [self-service](<https://devfeed.tech/tags/self-service.md>), [service](<https://devfeed.tech/tags/service.md>), [simulations](<https://devfeed.tech/tags/simulations.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

## AI overview

The platform's main challenge was reliable job control, not raw compute. It separated submission from execution: users stored configurations and received job IDs, SQS buffered work, Lambda orchestrated it, EC2 ran simulations, S3 stored artifacts, and Redshift held structured results. Durable job state, explicit transitions, idempotency, bounded retries and dead-letter handling helped manage duplicate delivery and failures; isolated runs and execution manifests supported traceability and reproducibility. The local SQLite demo illustrates these ideas but lacks worker-loss recovery, visibility timeouts, checkpointing, execution timeouts and dependency-complete manifests, so its results do not establish production behavior. Project records report roughly three times as many experiments per working cycle and near-zero idle EC2 execution cost, while other AWS services still cost money. The author would evaluate AWS Batch or ECS and Step Functions, while cautioning that Kubernetes adds operational costs and that reproducibility needs stronger lineage from the outset.

## Source excerpt

What I learned about queues, failure recovery, and reproducibility while building asynchronous workloads on AWS The post How to Turn Long-Running Python Simulations Into a Self-Service Platform appeared first on Towards Data Science.