Skip to content

Refactor/single process multiple services#785

Open
renatomaia wants to merge 14 commits into
next/2.0from
refactor/SingleProcessMultipleServices
Open

Refactor/single process multiple services#785
renatomaia wants to merge 14 commits into
next/2.0from
refactor/SingleProcessMultipleServices

Conversation

@renatomaia

Copy link
Copy Markdown
  • New service runtime pieces:

    • ServicesSupervisor to manage several services together in a single-process, handle OS signals, propagate stop/reload, and join child errors.
    • TickServiceTemplate for tick-based services:
      • Advancer
      • Claimer
      • EMV Reader
      • PRT
      • Validator
    • HTTPServiceTemplate for HTTP-backed services:
      • JSON-RPC
      • Inspector: now uses the same hardening path and generic HTTP service startup/shutdown behavior.
      • Telemetry: was refactored as a built-in service managed by a Supervisor.
  • Error handling and lifecycle behavior were tightened throughout:

    • Use combined errors with errors.Join instead of []error.
    • Shutdown is now driven by context cancellation instead of ad hoc service-stop signaling.
    • Child-service failures are propagated through the supervisor.

@renatomaia renatomaia force-pushed the refactor/SingleProcessMultipleServices branch from ae08bb4 to 3cf0490 Compare June 23, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants