eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support @Transactional

hantsy opened this issue · comments

In Spring Data, some NoSQL databases got transaction support, such as Mongo(in cluster), Redis.

I think JNoSQL should consider the CDI compatible @Transactional APIs(transaction could be a standard alone APIs in the future Jakarta EE ), and add it in the NoSQL which supports transactions.

Hey @hantsy good point. we can talk about it. For sure it might be a great annotation

Currently, the transaction APIs is too dependent on JakaraEE containers( the application servers ) and esp, used with the existing EJB, JTA, JMS, etc. I am not sure if it is possible to ported into JNoSQL, and as I know the @transactional is supported in Oracle Helidon and Redhat Quarkus.

And NoSQL will support SE and EE, like the JPA?

Usually, the NoSQL database does not support a precious transaction resource. When they have it such as MongoDB, they don't recommend it in favor of denormalization.
That is a good topic to study and analyze; however, we can create an extension and move to the API when we got more confidence.
Reference: https://docs.mongodb.com/manual/core/transactions/

We'll close this one for inactivity.

Mongo, Redis, Neo4j all have transaction concept, and Spring support them with Spring Transaction.