In NoSQL databases like MongoDB, how can you ensure data consistency across distributed databases?
- Use a two-phase commit protocol.
- Implement eventual consistency.
- Leverage distributed transactions.
- Use primary key constraints.
In NoSQL databases, data consistency across distributed databases is typically ensured by implementing eventual consistency. Two-phase commit protocols and distributed transactions can be complex and might introduce performance bottlenecks. Primary key constraints, while important, don't inherently guarantee distributed consistency.
Loading...
Related Quiz
- In JavaScript, closures are crucial for functional programming as they facilitate the creation of ________.
- When installing packages using npm, where are the dependencies listed?
- In a token-based authentication system, using a ______ approach helps in reducing the risk of token interception and replay attacks.
- In Node.js, the maximum number of listeners that can be added to an EventEmitter by default is ______.
- You are designing an authentication system for a new API. The API will be accessed by both web clients and other services. Which authentication strategy would be most suitable to ensure security and scalability?