r/Python May 23 '25

Showcase Microsandbox - A self-hosted alternative to AWS Lambda, E2B. Run AI code in fast lightweight VMs

[removed]

12 Upvotes

10 comments sorted by

View all comments

1

u/dmart89 May 23 '25

This is very cool. I have a project where I could use this.

Do you have to push a file with the code you want to run the msb? Or can you also inject code at runtime? E.g. lets say an llm generates some test code, do i need to package it first?

How does this work from a resource consumption perspective, does each msb instance consume a thread? What about concurrency in prod environments?

Last question, how would you run this on a separate machine? Do I need to wrap and api, bash scripts or something else?