flowchart LR accTitle: What independence would extracting a service buy? accDescr: Start from an observed pressure in the export workload. Each alternative names a bounded intervention, evidence that could justify more work and an owner for its new failure states. %% journal-architecture-extraction-ledger (en) %% https://www.thebsq.com/blog/modular-monolith-vs-microservices/ subgraph g1 ["Identify the pressure"] %% n_pressure — Distinguish HTTP CPU, database contention, release coordination and the need for atomic admission. The same service split would affect each pressure differently. n_pressure["What is blocked?"] %% n_cpu — Here, six exports per minute at eight CPU-seconds each offer 0.8 cores of average work. Bursts, memory, I/O and deadlines still determine usable capacity. n_cpu["Render CPU"] %% n_db — Slow requests may share a lock or expensive query with the worker. Inspect query plans and wait time under representative load to identify the shared constraint. n_db["Database contention"] %% n_release — Use release history to identify cases where a team could not deploy a renderer independently. Record the compatibility issue and which owner had to coordinate. n_release["Release coordination"] %% n_atomic — A proposed boundary places one credit debit and its corresponding job under different owners. A timeout between them can leave a debit with no accepted job. n_atomic["Allowance and job"] end subgraph g2 ["Try the smallest change"] %% n_worker — Run the existing module in a separate worker and cap concurrency. Compare request latency under the same render load before and after isolation. n_worker["Isolate render CPU"] %% n_query — Bound admission and expensive reads, then measure remaining database pressure. Splitting a process leaves a shared database and its locks in place. n_query["Limit query cost"] %% n_contract — Define a compatibility window for the job ID and input version. Identify who owns contract tests, dual-version operation, migrations and on-call response. n_contract["Version the job envelope"] %% n_reserve — When the business permits pending exports, specify stable reservation identity, confirmation, cancellation, expiry and reconciliation. Assign the owner of stranded credits. n_reserve["Price reservation states"] end subgraph g3 ["Reopen the decision"] %% n_evidence — The remaining bottleneck, its measurement and the team accepting the added operational work belong in the decision record. Revisit when representative evidence changes. n_evidence["Record the remaining constraint"] %% n_retain — When the worker resolves interference or partial financial states are unacceptable, keep one module and schema owner. Record which new evidence would reopen the boundary. n_retain["Keep the current owner"] end n_pressure -->|"Request latency rises during rendering"| n_cpu n_pressure -->|"Database wait dominates"| n_db n_pressure -->|"Teams wait on each other to ship"| n_release n_pressure -->|"Split would cross the debit"| n_atomic n_cpu -->|"Allocate an independent process budget"| n_worker n_db -->|"Inspect locks and query plans"| n_query n_release -->|"Test a compatibility window"| n_contract n_atomic -->|"If pending states are acceptable"| n_reserve n_atomic -->|"If acceptance must remain atomic"| n_retain n_worker -->|"Compare like workloads"| n_evidence n_query -->|"Measure residual contention"| n_evidence n_contract -->|"Review independent release history"| n_evidence n_reserve -->|"Price repair and ownership"| n_evidence n_evidence -->|"Current boundary meets the objective"| n_retain %% CPU-bound rendering — n_pressure → n_cpu → n_worker → n_evidence → n_retain %% Independent releases — n_pressure → n_release → n_contract → n_evidence %% Splitting allowance — n_pressure → n_atomic → n_reserve → n_evidence