Sunday, June 28, 2026
GitHubTwitter
GINBOK
Trang chủBài viếtTìm kiếmVề chúng tôi
|ENVIKhám phá
Trang chủBài viếtTìm kiếmVề chúng tôi
🇬🇧 English🇻🇳 Tiếng Việt
Bài viết›Open Source›Floci: AWS Emulator Miễn Phí Ra Mắt Đúng Ngày LocalStack Sunset
Open Source

Floci: AWS Emulator Miễn Phí Ra Mắt Đúng Ngày LocalStack Sunset

ClaudeMay 14, 20267 phút đọc
🍿 Open Source · MIT Floci — Free AWS Emulator Drop-in replacement for LocalStack. No token. No gates. Forever free. 24ms Startup time 13 MiB Idle memory 90 MB Image size 41 AWS services github.com/floci-io/floci · 2.7k ⭐ · Built with Quarkus Native

Sự kiện: tháng 3 năm 2026

Ngày 15 tháng 3 năm 2026, LocalStack đăng bài "The Road Ahead for LocalStack". Community Edition — tier miễn phí mà hàng trăm nghìn developer đã dựa vào nhiều năm — bị sunset. Security update đóng băng. Auth token bắt buộc. Không có migration path cho CI pipeline đang chạy docker run localstack/localstack không cần credentials.

CI pipeline sập trong đêm. Docker Compose stack ngừng hoạt động. Các team phải chọn: trả tiền cho LocalStack Pro hoặc tìm alternative. Alternative xuất hiện đúng ngày LocalStack công bố sunset.

Floci 1.0.0 ra mắt ngày 15 tháng 3 năm 2026.


Floci là gì, chính xác

Floci là AWS local emulator miễn phí, MIT-licensed, mã nguồn mở. Chạy như một Docker container đơn, expose tất cả service trên port 4566 (giống LocalStack), nói AWS wire protocol, chấp nhận bất kỳ string nào làm credentials. Không account. Không token. Không telemetry. Không feature gate.

Được build trên Quarkus Native — Java framework compile thành native binary, loại bỏ hoàn toàn JVM startup overhead. Kết quả là binary ~40 MB khởi động trong vòng 25 ms. Đặt tên theo cirrocumulus floccus — đám mây trông như bỏng ngô.


Các con số

Chỉ sốFlociLocalStack CommunityDelta
Startup time~24 ms~3.300 msNhanh hơn 137×
Idle memory~13 MiB~143 MiBÍt hơn 11×
Docker image~90 MB~1.000 MBNhỏ hơn 11×
Auth token bắt buộc❌ Không bao giờ✅ Bắt buộc (3/2026)—
Security updates✅ Active❌ Đóng băng—
LicenseMIT (permissive)Restricted—
Native binary✅ ~40 MB❌—
Stars (tháng 5/2026)4.200+—4.2k trong ~7 tuần

Chênh lệch 137× startup không phải con số học thuật. Trong CI pipeline spin up Floci container mới mỗi test suite, 24 ms vs 3.300 ms nghĩa là infrastructure sẵn sàng trước khi test đầu tiên load xong. Với 100 CI run mỗi ngày, đó là 5,5 phút tiết kiệm được — mỗi ngày, mỗi developer.


Kiến trúc

Một HTTP router duy nhất (JAX-RS + Vert.x) xử lý tất cả 35 service trên port 4566. Service được chia thành ba execution tier:

Kiến trúc Floci AWS SDK client gửi HTTP request tới HTTP Router của Floci trên port 4566. Router phân phối tới ba tier: Stateless Services (in-process, 20+ services), Stateful Services (S3 và DynamoDB với pluggable storage), và Container Services (Lambda, RDS, ElastiCache, ECS, MSK, EKS qua Docker containers thật). Tất cả tier dùng chung Storage Backend. Container Services interface trực tiếp với Docker Engine. AWS SDK / CLI client :4566 HTTP router JAX-RS / Vert.x AWS wire protocol Floci — port 4566 Stateless services in-process · không có container overhead SSM SQS / SNS IAM / STS KMS Cognito EventBridge Kinesis +12 services Step Functions CloudFormation CloudWatch · ACM Stateful services in-process · pluggable storage backend S3 DynamoDB DynamoDB Streams Container services Docker containers thật · IAM + SigV4 auth Lambda RDS ElastiCache ECS MSK Docker engine (socket mounted) Storage memory · hybrid persistent · wal
Hình 1 — Kiến trúc nội bộ Floci. Container services mount Docker socket để spin up container thật; stateless và stateful service chạy trong Quarkus native binary.

Quyết định thiết kế then chốt là ba tier tách biệt. In-process service có zero network overhead. Container service có fidelity từ engine thật — bạn đang test trên PostgreSQL thật, Redis thật, Lambda runtime thật, không phải simulation.


Service coverage: những gì LocalStack Community không có

ServiceFlociLocalStack Community
API Gateway v2 (HTTP API)✅ Đầy đủ❌
Cognito (user pools, JWKS, auth flows)✅ Đầy đủ❌
ElastiCache (Redis + IAM auth)✅ Container thật❌
RDS (Postgres + MySQL + IAM auth)✅ Container thật❌
MSK (Kafka qua Redpanda)✅ Container thật❌
ECS (clusters, tasks, services)✅ Container thật❌
EKS (k3s, live kubeconfig)✅ Container thật❌
DynamoDB Streams✅ Đầy đủ + Lambda ESM⚠️ Partial
IAM (users, roles, groups, policies)✅ 65+ ops⚠️ Partial
KMS (sign, verify, re-encrypt)✅ Đầy đủ⚠️ Partial
Kinesis (fan-out, split/merge)✅ Đầy đủ⚠️ Partial
S3 Object Lock (COMPLIANCE mode)✅ Đầy đủ⚠️ Partial
Athena (SQL thật qua DuckDB sidecar)✅ Sắp ra❌
Glue Data Catalog✅ Đầy đủ❌
SQS / SNS / SSM / Step Functions✅ Đầy đủ✅ Đầy đủ

Khoảng cách coverage không nhỏ. Nếu stack của bạn dùng Cognito cho auth, RDS cho storage, và MSK cho event streaming — tất cả đều phổ biến trong production AWS — bạn thực tế bị block khỏi local testing đầy đủ với LocalStack Community. Floci cover cả ba out of the box, với container thật.


Compatibility testing

Tuyên bố về emulator fidelity thì dễ. Floci back bằng automated test suite:

ModuleNgôn ngữ / ToolTests
sdk-test-javaJava 17 · AWS SDK v2889
sdk-test-nodeNode.js · AWS SDK v3360
sdk-test-pythonPython 3 · boto3264
sdk-test-goGo · AWS SDK v2136
sdk-test-awscliBash · AWS CLI v2145
sdk-test-rustRust · AWS SDK86
compat-terraformTerraform v1.10+14
compat-cdkAWS CDK v2+17
Tổng cộng1.911

Mỗi release chạy toàn bộ 1.911 test. Mức độ tin cậy không phải "chạy được trên máy mình" — mà là CI liên tục trên 6 SDK và 3 IaC tool đồng thời.


Storage modes

Một chi tiết thường bị bỏ qua: Floci xử lý data persistence như thế nào. Bốn mode, có thể config per-service qua FLOCI_STORAGE_MODE:

ModeHành viPhù hợp nhấtDurability
memoryToàn bộ trong RAM, mất khi stopCI pipeline, ephemeral test❌
hybridIn-memory + async flush mỗi 5 giâyLocal dev (mặc định)✅
persistentFlush to disk khi shutdown gracefulPreserve state đơn giản⚠️
walWrite-Ahead Log, mọi mutation được persistDebug timing-sensitive issues💎

Cho CI: dùng memory. Cho local dev: giữ hybrid (mặc định). WAL mode đặc biệt hữu ích khi debug timing-sensitive issue — bạn có thể replay chính xác sequence of mutations dẫn đến failure.


Drop-in migration từ LocalStack

Nếu bạn đang dùng LocalStack Community, migration chỉ là một dòng thay đổi:

services:
  localstack:
-   image: localstack/localstack:latest
+   image: hectorvent/floci:latest
    ports:
      - "4566:4566"

Không thay đổi endpoint. Không thay đổi credentials. Không thay đổi code. AWS wire protocol giống hệt. boto3, SDK v2, SDK v3, Terraform đều point đến http://localhost:4566 và dùng test/test — giống như trước.

Với multi-container Docker Compose, thêm một biến môi trường để Floci trả về URL đúng giữa các container:

services:
  floci:
    image: hectorvent/floci:latest
    ports:
      - "4566:4566"
    environment:
      - FLOCI_HOSTNAME=floci
  my-app:
    environment:
      - AWS_ENDPOINT_URL=http://floci:4566
    depends_on:
      - floci

Decision tree: khi nào nên dùng Floci

Bạn đang develop local với AWS?
├── Có
│   ├── Đang dùng LocalStack Community? → Chuyển ngay. Thay một dòng image.
│   ├── Project mới?                     → Bắt đầu với Floci. Không friction.
│   └── Đang dùng LocalStack Pro?
│       ├── Cần Chaos Engineering / Pro-only features? → Ở lại Pro.
│       └── Chỉ dùng standard services?               → Evaluate Floci.
└── Không → Không áp dụng.

Lý do duy nhất để ở lại LocalStack Pro là nếu bạn phụ thuộc vào tính năng Pro-only: Chaos Engineering, LocalStack Web App, enterprise support tier. Với đại đa số team chạy S3, DynamoDB, SQS, Lambda, RDS, Cognito — Floci có tất cả, và hoàn toàn miễn phí.


Velocity: từ 1.0.0 lên 1.5.2 trong 26 ngày

Floci ship v1.0.0 ngày 15/3/2026. Đến ngày 10/4, đã lên v1.5.2. Những gì landed trong 26 ngày đó:

  • ECS service với real Docker container lifecycle
  • EC2 với 61 operation (VPCs, subnets, security groups, instances)
  • OpenSearch qua real Docker container
  • EventBridge Scheduler (schedule groups, flexible time windows, DLQs)
  • SES v2 REST JSON protocol
  • Step Functions JSONata support + nested state machine execution
  • DynamoDB linearizable mutations under concurrent load
  • Cognito SRP-6a authentication
  • S3 Lambda notifications + presigned POST policies
  • API Gateway v2 management API + CloudFormation provisioning

Đây không phải maintenance velocity. Đây là project build nhanh vì community đang push mạnh và architecture hỗ trợ rapid iteration.


Repo

Mã nguồn mở, MIT licensed: github.com/floci-io/floci. Community Slack active. Issue được triage nhanh. 4.200 star trong 7 tuần.

LocalStack sunset là forcing function. Floci là kết quả.

#aws#localstack#floci#docker#devops#open-source#local-development
← Quay lại bài viết
GINBOK

Deep technical writing for developers and designers who care about the craft.

Content
  • All Articles
  • Engineering
  • Design
  • Product
Company
  • About Ginbok
  • Authors
  • Write for Us
  • Contact
Stay Updated
© 2026 Ginbok. All rights reserved.
PrivacyTerms