Comments (4)
@JapaharJose AFAIK neither moleculer
nor moleculer-db
provide support for any sort of transactional awareness that would handle this sort of rollback.
The Moleculer framework itself focuses primarily on the composition and control of microservices for which there is no standard/inherent transactional practice/pattern. I highly recommend reviewing the patterns documented for both data management and transactional messages in microservice systems over on https://microservices.io/.
The Moleculer DB package which provides some standard, supported database adapters targeting various database management systems for Moleculer services also, as far as I know, is relatively unopinionated about the approach and utilization.
How your application handles transactions - for both data management and inter-service messaging - is something your application will need to implement.
from moleculer.
@JapaharJose, could you kindly specify the package you are utilizing - moleculer-db
or database
- and mention the database adapter you are using? Thank you.
from moleculer.
@intech We are using mongodb and mongoose adapter.
from moleculer.
Can anyone answer this?
from moleculer.
Related Issues (20)
- Use broker Runner: Service name can't be empty HOT 3
- service schema routes can not use service like broker
- Feature Request - Complete TypeScript Implementation HOT 1
- Can the dependencies in service.js and the waitForServices function support the ability to pass in a nodeID when passing in the serviceName? HOT 3
- Hot reload circular dependency in monorepos HOT 2
- Encryption error on GOSSIP packets HOT 1
- When retry is enabled, all exceptions return 404 HOT 2
- moleculer-amqp-queue issue HOT 1
- Load Balancing on custom metric HOT 4
- Performance issue with NATS transporter (v2.x.x) HOT 12
- Broker middleware `call` wrapper removes context data. Cannot use ctx.meta.
- Native cache does not save response headers
- BrokerOptions typescript definition does not contain logFormatter property HOT 1
- Add chunking (streaming) to broker.broadcast HOT 2
- Documentation on cache lock does not match the source HOT 1
- Update the badge of Twitter to 𝕏
- moleculer crash if ioredis can not change state to "ready" HOT 1
- Redis SSL URI not reconized as a Redis type discoverer
- Installation fails for Node 20 LTS HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moleculer.