This directory contains practical, production-ready examples of using Accord transactions in Apache Cassandra. Each example includes complete schema definitions, transaction implementations, and usage instructions.
examples/
├── banking/ # Financial transaction examples
├── inventory/ # Inventory management examples
└── user-management/ # User registration and management
- Account transfers with overdraft protection
- Multi-currency transactions
- Account creation with constraints
- Product inventory tracking
- Shopping cart implementation
- Reservation system
- User registration with unique constraints
- Profile updates across multiple tables
- Session management
- Start Accord-enabled Cassandra:
docker pull pmcfadin/cassandra-accord
docker run -d --name cassandra-accord -p 9042:9042 pmcfadin/cassandra-accord
- Navigate to an example directory:
cd examples/banking
- Run the setup script:
./setup.sh
- Follow the example-specific README for detailed instructions.
Give us anyfeedback you have in Github Discussions Want to add an example? See our contribution guidelines.
- Check the documentation
- Join our Discord