ddd.application.application_service

API

class ddd.application.application_service.ApplicationService(db_service, domain_adapter, domain_publisher, event_repository, interchange_adapter, interchange_publisher, job_service, job_adapter, log_service, scheduler_adapter, max_concurrent_actions=40, loop=None)

The application service base class.

Parameters
  • db_service – The db service.

  • max_concurrent_actions – Maximum number of actions to allow the application service to run concurrently, defaults to 40. This should be adjusted according to the size of your database’s connection pool so that it’s not exceeded when there’s lots of traffic.

async start()

Starts the application service.

async stop()

Stops the application service.