惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
J
Java Code Geeks
G
Google Developers Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Vercel News
Vercel News
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
F
Fortinet All Blogs
Y
Y Combinator Blog
博客园_首页
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
A
About on SuperTechFans
B
Blog
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Floci philosophy: stay tiny, feel like real AWS
Hector Ventu · 2026-05-10 · via DEV Community

Hector Ventura

Every AWS emulator forces a tradeoff:

  • Fast and fake. Tiny, instant, until your code touches a real engine and the abstraction cracks.
  • Heavy and faithful. Closer to AWS, but a 3-second startup, hundreds of MB, a bundled Python runtime that turns every CI job into a slow morning.

I built Floci to refuse the choice. One principle:

Be the lightest thing possible. Be real where it counts.


The two halves of every AWS service

Read enough AWS API docs and you notice every service has two parts:

  1. A control plane: "create this bucket, list my queues." Just CRUD over JSON or XML. The hard part is wire-protocol fidelity.
  2. A data plane: "run this Lambda, connect to this database, query this Redis." This is where the real engine lives. Faking it works until it doesn't.

The control plane has no excuse to be heavy. The data plane has no excuse to be fake.

So Floci does both, on purpose, in different layers.


How it's structured

┌───────────────────────────────────────────┐
│  Floci core, Quarkus native binary        │
│  24 ms startup · 13 MiB idle              │
│                                           │
│  All control planes + stateless services  │
│  (S3, SQS, DynamoDB, IAM, KMS, ...)       │
└─────────────────┬─────────────────────────┘
                  │ Docker socket, on demand
                  ▼
┌───────────────────────────────────────────┐
│  Right-sized engines per service          │
│                                           │
│  Tiny sidecars:                           │
│   • Athena, Firehose → floci-duck (DuckDB)│
│                                           │
│  Heavy real engines:                      │
│   • Lambda → real container               │
│   • RDS    → real Postgres / MySQL        │
│   • Cache  → real Redis / Valkey          │
│   • MSK    → real Kafka                   │
└───────────────────────────────────────────┘

Enter fullscreen mode Exit fullscreen mode

One tiny core. Real engines pulled in only when you actually use the service that needs them.


Three patterns, not two

The interesting part of the design is that there are three patterns, not the usual two. Each picks the smallest thing that gives you real behavior:

1. Stateless / metadata → in-process.
S3, SQS, DynamoDB, IAM. There's no engine to fake, just specs to implement correctly. Floci does it in 13 MiB.

2. Small embedded engine exists → tiny sidecar.
Athena doesn't need a Presto cluster. It needs correct SQL execution over data in S3. So Floci uses floci-duck, a small Rust binary wrapping DuckDB. Real columnar SQL, no JVM, no Hive metastore. The same sidecar powers Firehose's Parquet conversion. That's the philosophy at its purest: pick the lightest real engine.

3. No embeddable substitute → real heavy engine.
RDS, ElastiCache, MSK, OpenSearch, Lambda. Your code speaks PostgreSQL or RESP or Kafka or runs as actual containers, there's no faking it. Floci spins up the real thing on demand and gets out of the way.

The rule across all three: never reimplement an engine that already exists. Glue the AWS API onto it, then disappear.


What this buys you

Lightweight isn't marketing. A 24ms cold start means you spin Floci up per-test without thinking. ~13 MiB at idle fits free-tier CI runners. ~90 MB image is auditable. docker compose up finishes before you've alt-tabbed.

Fidelity isn't a checkbox. Lambda runs in real Lambda runtime images. RDS speaks real PostgreSQL. ElastiCache speaks real RESP. Athena runs real SQL through DuckDB against your real S3 data. If your test passes, your code actually works.


The tradeoffs I accept

  • Floci needs the Docker socket for engine-backed services. Fair deal.
  • Some services start slower than the core. Postgres takes a few seconds to boot. Floci itself is 24ms, but CreateDBInstance takes as long as Postgres takes. No way around that without lying.

These are the price of not lying to you.


Why it matters

Every emulator decision comes down to: do you want your tests to tell you the truth?

A bloated emulator gets skipped. A fast-but-fake one passes tests that fail in production. Floci's whole architecture is built to dodge both ends, pick the smallest real thing for every service, and never the bloated thing that pretends.

That's it. The rest is just code.


docker run --rm -p 4566:4566 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  floci/floci:latest

Enter fullscreen mode Exit fullscreen mode

🔗 github.com/floci-io/floci
📚 floci.io/floci
💬 floci.slack.com

If you've ever shipped a bug because a test mock lied to you. I'd love to know which service did it. That's what Floci's roadmap is built from.