Product discovery
One process in EMBEDDED. Focus on customer workflow, business rules, persistence, feedback and failure behavior.
Shared knowledge · Beginner · For startups and product teams
Do not design a distributed production topology before the product proves which boundaries need distribution. Keep the business target stable, start local, and move to a peer for a concrete reason.
Existing applications
Choose an operation with a result you can compare, such as quoting an order. The existing API still receives requests, checks permissions and returns results. In development, try changing just the call from the API to the pricing handler.
billing.quote, then send the same sample request
using Embedded mode.01 · Default
stable business target + explicit contract
first: a local handler in a modular monolith
later: a peer process or deployed service when evidence requires it
Infrastructure does not disappear. This rule defers proxies, containers, replicas, credentials, rollout and on-call work until the product has a concrete reason to pay those costs.
02 · Product discovery
One executable and one debug session can still be organized around stable capabilities. A caller knows the target and payload contract, not whether its handler lives in a module, process, container or host.
customer.profile.update → customer module
billing.invoice.create → billing module
inventory.stock.reserve → inventory module
With CoAkka Runtime this shape uses EMBEDDED, local route
port 0 and no TCP listener. Target ownership, bounded
admission, timeout, replies/deadletters, lifecycle and diagnostics are
still real contracts; the team does not pretend a local function is
already a remote service.
03 · Practical progression
One process in EMBEDDED. Focus on customer workflow, business rules, persistence, feedback and failure behavior.
Add a process when another language or runtime gives a concrete advantage. Run from normal IDEs, use explicit loopback and debug both sides.
Add containers or Compose to prove packages, dependency isolation, CI and the network boundary, not to discover business logic.
Split deployment only when ownership or operational evidence outweighs the cost of another service.
04 · Decision gate
Do not split because a microservice diagram looks more mature. Every new service adds packaging, configuration, credentials, rollout, monitoring, failure modes and on-call work.
05 · Evolution contract
Target name; payload identity/schema; reply/deadletter expectations; timeout/cancellation policy; business owner of the handler.
Route endpoint and generation; process owner; network mode; bind/advertise values; deployment, scaling and recovery policy.
A call site should not acquire a private controller, URL builder, status-code convention, retry wrapper and correlation scheme merely because its handler moved to another process.
Keep the capability local until one measured development, ownership, security, isolation or scaling need outweighs the operational cost of a new service.
The application still owns transactions, idempotency, payload evolution, authentication/authorization, business retry, discovery input, SLOs and incident response. CoAkka Runtime does not infer business policy from topology.