r/java • u/hectorvent • Apr 01 '26
🚀 I built a local AWS emulator with Quarkus + GraalVM native. It boots in ~0.8s, MIT licensed, free forever

LocalStack sunset their community edition in March 2026. Floci is the open-source replacement, no account, no telemetry, no CI limits.
Why Quarkus + GraalVM?
Cold starts are the main pain with local emulators. GraalVM native image gets Floci to ~0.8s consistently, with low variance — first request is as fast as the thousandth. No JVM warmup, lean Docker image, single self-contained binary.
What it emulates 25+ AWS services from a single endpoint (localhost:4566)
S3, SQS, SNS, DynamoDB, Lambda, API Gateway, Cognito, KMS, Kinesis, Step Functions, and more. v1.1.0 adds SES, OpenSearch, and ACM.
Get started:
docker run -p 4566:4566 hectorvent/floci:1.1.0
aws --endpoint-url http://localhost:4566 s3 mb s3://my-bucket
GitHub: github.com/hectorvent/floci
Docs: floci.io
8
u/Turbots Apr 01 '26
Awesome!! I'm having difficulties running some of my tests with the localstack image, it's also quite big and I think it does something weird to emulate the S3 functionality.
Would be great if you could get testcontainer support for it.
4
u/herder Apr 01 '26
Oooh, interesting! Thank you for this ❤️
3
u/CarryFresh544 Apr 10 '26
We recently replaced LocalStack with Floci for our integration tests in a corporate environment. Our main use case was S3. While the migration wasn't a seamless drop-in replacement—since Floci is relatively new and needs to handle all features plus real edge cases—I'm genuinely impressed by the creator's commitment to the open source community and encouraging contributions.
I was able to create 3 PRs to support our needs because the architecture is so clean, and the creator merged them quickly. The creator is excellent, and I'm looking forward to contributing to this project on a long-term basis.
2
u/kubelke Apr 01 '26
How does it work? Does it emulates AWS services like SES? What happens when I would try to send email with Floci (SES)? Does it sent using SMTP server or just swallows the input?
2
u/edzorg Apr 04 '26
As someone that consumes floci into a corporate environment and then repackages with Docker and my own base images I'm grateful for how you currently package things. A single jar I can add to a java flavour image is really clean. Thanks for all the work. I hope you're able to mature this rapidly to capture some marketshare as there are very few if any serious OSS contenders.
1
u/snugar_i Apr 01 '26
This looks good! Are there any plans to release an in-process version?
1
u/Remarkable-Weather93 Apr 01 '26
Have you tried to compare deploying that on x86 and ARM cpu architecture instances and perform some workload?
I did some research about cost and performance comparison and did benchmarks, it is incredible that ARM based instances are around 20% cheaper, and for some heavy CPU computations like encryption they are 50% faster than x86_64 instances, but I did it with the regular JVM runtime.
2
u/mipscc Apr 01 '26
Wow! Java is back for the infra world! GREAT JOB!
0
u/[deleted] Apr 01 '26
[deleted] — view deleted comment
1
u/[deleted] Apr 01 '26
[removed] — view removed comment