Skip to main content

31 docs tagged with "Domain Service"

View All Tags

Consume Events from another Service

You want to consume an Event from a Service that has already been published so that you can implement logic that is executed when the Event is triggered.

Debug Events locally

I have a Domain Service project with Event publishing inside and I want to debug e.g. the event-publishing Command. How can I debug my Command and see whether my Event was published correctly?

Define Entity Mapping (Java)

When working with Domain services mapping between api namespace and domain namespace is often needed, for example :

Define Unit Tests (Java)

You already have an existing Java Domain service, you want to include unit testing for that service.

Define Unit Tests (TypeScript)

You want to write unit tests without having access to all of the infrastructure which can be achieved by mocking which is described here in this How-To.

Implement Error Handling for APIs

You have designed API operations with more than just one resoponse to cover both the success and error case. In your implementation code you want to return a specific response body if an error happens.

Integrate WebSocket

Set up a WebSocket server in your Domain Java service using Java Stack 2.0 to enable real-time bidirectional communication.

Release a Service

You have implemented changes in your Service and want to release them so that the new version could be used in an Application.

Unit 7: API Schemas

Content on this page reflects earlier versions of the and will be updated soon.

Use External Entities

An External Entity is considered a proxy of an entity that is managed by another microservice. Normally, the external entity contains only the most important data that is regularly needed in the context of the aggregate to which the external entity belongs. Because of these specifics, it is handled differently than a usual Entity.

Use the SAGA Pattern

You want to design transaction-like behaviour using the SAGA pattern support in your Java Domain Service based project.

View Distributed Tracing

Goal: Enable and configure distributed tracing for REST calls, MongoDB operations, and Kafka events in Java stack 2.0 applications using OpenTelemetry with Jaeger.