A
A
Anton Voskoboev2021-08-31 01:56:35
Java
Anton Voskoboev, 2021-08-31 01:56:35

Can the backend admin be a separate application?

There is a Spring application with Hibernate that provides an API for a SPA. There was a need to add an admin panel and two options are being considered:
1. enter the administrator role in the current application;
2. transfer the server part of the admin panel to a separate application.

With the first option, everything is clear, but with the second, the question arises, how to ensure the consistency of data changes in the database? After all, Hibernate caches the results of queries, and if the admin application changes the data, the main application will not know about it and may return irrelevant data from the cache upon request.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-08-31
@xez

Hibernate caches query results

Caches, but second-level cache is disabled by default.
You can enable it and configure caching, for example, in radishes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question