Skip to main content

Expense service

Split bills attached to feed posts, guest bill invites, netting and settlement, payment evidence, and expense notification events.

Bounded contextshared expenses
Listen port8083
PostgreSQL schemaexpense
Sourcesplick-backend/services/expense-service

Responsibilities​

  • Own its schema and Flyway migrations. Other services call HTTP or consume events. They do not join this schema.
  • Expose public routes only through Kong. Internal routes use the internal API key.
  • Publish integration facts through the transactional outbox when this service produces events. The outbox relay is the publisher.

Kong prefixes​

  • /api/v1/expenses
  • /api/v1/public/bills
  • /api/v1/bills (invite claim)

Public clients use http://localhost:8080/api in dev and https://api.splick.app/api in production. Kong strips the /api prefix before the upstream.

Pages in this section​