# Services in Monoliths

**URL:** <https://community.dynatrace.com/t/services-in-monoliths/39302>\
**Category:** Automations\
**Tags:** services-classic, slo\
**Created:** [April 14, 2023, 5:41am UTC](https://community.dynatrace.com/t/services-in-monoliths/39302 "2023-04-14T05:41:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amithgeorge](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@amithgeorge](https://community.dynatrace.com/u/amithgeorge)\
**Post date:** [April 14, 2023, 5:41am UTC](https://community.dynatrace.com/t/services-in-monoliths/39302/1 "2023-04-14T05:41:24Z")

</div>

We have a monolithic Clojure (JVM) application. This application handles many different usecases. A usecase typically starts with a web request, which enqueues multiple background jobs. The jobs run and update the database.

In another forum post, I read a community member mention

\> the customer, he can create a custom service for a method he is interested in and then we would capture purepaths for that method

Does this mean I can create custom services for certain usecases within my monolith? I find the idea interesting, because that would make it easy for me leverage builtin “Service-level availability” templates for the SLOs for that usecase.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [April 14, 2023, 7:32am UTC](https://community.dynatrace.com/t/services-in-monoliths/39302/2 "2023-04-14T07:32:58Z")

</div>

Hi,

You can create your own&nbsp;[Custom services](https://www.dynatrace.com/support/help/shortlink/custom-services).

Best regards

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [April 14, 2023, 12:07pm UTC](https://community.dynatrace.com/t/services-in-monoliths/39302/3 "2023-04-14T12:07:51Z")

</div>

Custom service is great&nbsp;funcional.

This is how it looks:

After instrumentation Dynatrace will add service. You can find it in “called services”.

 ![Romanenkov_Al3x_2-1681473830407.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/031270e3a561604a2dcc48aa2f36f941c249cd04.png)

in squares - additional information on the operation of methods instrumented using custom service

How exactly it takes -&nbsp;buildFeedMetadata method and&nbsp;buildFeedEntries

 ![Romanenkov_Al3x_1-1681472976457.png](https://global.discourse-cdn.com/dynatrace/original/2X/0/0433a4c2a48b2f8685cd6f6e260b500f4810e74d.png)

Great real example with&nbsp;monolith app:

we have successfully instrumented service, which generate&nbsp;insurance policy(PDF) and send it to the Customer (async logic).

Out of the box with Dynatrace we can see only http service - which send response 200(OK) in microseconds - for incoming generation request and other main work (for 30 sec+) and logic&nbsp;was hidden from us.

We have added processing steps with Custom Service and have got:

if Service slowed Dynatrace exactly show which step of processing (Custrom Service) is the root cause of the problem.

Regards,

Alex Romanenkov
