Microservices, security & async scale
Connect internal microservices, queues and workflows without AWS VPCs or Kafka/KEDA ops
Run Firecracker-isolated internal services over `.internal` DNS with zero-VPC caller allowlists, atomic release graphs, platform SSRF denylists, static egress IPs, zero-secret API relays, pull-queue workload identity, Kafka-lag scaling and durable workflows.
What breaks vs. how Gregale solves it
As backends grow past one service, teams usually get forced into Kubernetes, Istio service meshes, AWS VPC NAT Gateways, KEDA scalers and Temporal clusters just for basic internal reliability and security.
Problem without Gregale
Internal service communication demands VPC peering, private hosted zones and manual mTLS certs.
How Gregale solves it
Apps in the same account discover one another via `GREGALE_SERVICE_*_URL` and `.internal` aliases with target caller allowlists enforced before waking targets.
Problem without Gregale
Partner IP allowlists or SSRF defense force expensive NAT Gateways and brittle firewall scripts.
How Gregale solves it
Bind static egress IPs per app/region on demand while platform-wide egress denylists block `169.254.169.254`, RFC1918 and SMTP spam ports across every plan.
Problem without Gregale
Scaling workers on queue lag or durable workflows means operating KEDA or Temporal.
How Gregale solves it
Autoscale directly from zero on `queue_lag`, custom metrics or cron schedules, use workload-identity queue leases, and write resumable workflows in plain code or YAML.
Deep-dive guides (11)
Stop microservice version drift with atomic project releases and release graphs
Preflight multi-service projects with `gregale deploy check --project`, pin compatible frontend, API, worker and queue versions with `X-Gregale-Release` and `__Host-gregale_release`, and opt into progressive whole-graph canaries.
Private service-to-service networking with caller allowlists and no VPC
Apps in the same account reach one another privately by name (`GREGALE_SERVICE_*_URL` and `.internal`) with zero VPC setup, while target caller allowlists, path scopes, deadlines and default-deny PR preview rules run at the proxy before waking targets.
Static egress IP on scale-to-zero without a NAT Gateway
Bind a dedicated outbound static IP per app and region with `gregale app static-egress-ip set` so banks, payment processors and allowlisted databases see one stable IP even while compute scales to zero.
Default SSRF protection with platform egress denylists across every plan
Block `169.254.169.254` cloud metadata, RFC1918 private networks, IPv6 NAT64 bypasses, SMTP spam ports, SSH/RDP and mining pools automatically on every Gregale app without extra configuration.
Call Stripe, OpenAI and third-party APIs without API keys in your app
Gregale outbound integrations (in preview per account on Hobby, Pro and Scale) inject sealed `Authorization` credentials outside your microVM at `$GREGALE_OUTBOUND_URL`, enforcing method/path allowlists, circuit breakers and daily request budgets.
Programmable edge rules and replayable trace testing without Nginx or Cloudflare
Block scrapers, rate-limit routes, verify JWTs and validate JSON Schema requests at the gateway without waking idle VMs, then test rule sets deterministically with versioned `gregale edge rule trace` JSON scenarios.
Run SQS-style pull queue workers with zero-secret workload identity
Long-running workers consume Gregale queues without an HTTP listener using `leases`, `ack`, `nack` and `extend`, preview SDK auto-heartbeating (`consumeQueue`), `queue_depth` autoscaling and `gregale:queues` workload tokens that block staging/preview code.
Autoscale containers from zero on Kafka lag, custom metrics and schedules
Scale Gregale apps up from zero on upstream Kafka/NATS/SQS `queue_lag`, API-pushed `custom` backlog metrics, or timezone-aware cron warm windows (`scaling.schedules`) with bounded saturation queues—without Kubernetes or KEDA.
Write durable workflows that sleep for months without a running VM
Write durable retries, multi-day sleeps (30 days on Hobby, 90 on Pro, 365 on Scale), and event waits as plain async functions in Node, Python or Go that hold zero running VM while parked (in preview on Hobby and up).
Diagnose and recover failed stored workflows and missed schedules safely
Inspect failed DAG blockers with `gregale workflow diagnose`, resume mid-run preserving completed steps (`expected_resume_count`, up to 16 resumptions), opt into `catch_up: latest` schedules and run rate-limited recovery batches.
A microVM for every app
Gregale runs every app instance in its own Firecracker microVM, with its own kernel, network namespace, memory limit and jailed process. Your existing Dockerfile works unchanged.
Documentation references
Questions
- Do I need to configure VPC subnets or security groups for private microservice calls?
No. Private
.internalrouting andGREGALE_SERVICE_*_URLinjection work across your account on every plan without configuring VPCs, and target caller allowlists plus default-deny PR preview rules run in the proxy before waking target VMs.- How does Gregale isolate untrusted workloads compared to shared container clouds?
Every app runs in its own Firecracker microVM with an independent guest kernel, memory ceiling and jailed hypervisor boundary—never sharing a host kernel across tenants.
- Can workers authenticate to queues or call Stripe/OpenAI without storing long-lived keys?
Yes. Workers with workload identity (preview) fetch short-lived
gregale:queuestokens on loopback (and block staging/preview reads against production queues), while outbound integrations (preview) inject sealedAuthorizationheaders outside the container at$GREGALE_OUTBOUND_URL.