Enterprise Application Architecture with .NET Core
by Ganesan Senthilvel, Ovais Mehboob Ahmed Khan, Habib Qureshi
Sample background service
Background services in SOA are continuously running services, which may or may not expose some service-callable interface. A background service is usually considered as a technical category of service, and is usually categorized depending on the function of a service. Our sample service could be categorized as an interaction or a data access service, which is a background running service acting as a DB Monitor, which periodically checks the database for a document's validity. Upon detecting the expiry documents, it calls another service to notify the change. We will see the sample code of the notification service (DocumentValidity) called by the background service in the next session.
This kind of service needs to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access