Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bilalvdemir/hazelcastwithcassandra
Hazelcast used to cache the data of CassandraDB
https://github.com/bilalvdemir/hazelcastwithcassandra
cassandra docker hazelcast kubernetes spring-boot
Last synced: 17 days ago
JSON representation
Hazelcast used to cache the data of CassandraDB
- Host: GitHub
- URL: https://github.com/bilalvdemir/hazelcastwithcassandra
- Owner: bilalvdemir
- License: apache-2.0
- Created: 2019-07-06T10:51:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T07:33:13.000Z (over 5 years ago)
- Last Synced: 2024-10-08T13:22:01.800Z (about 1 month ago)
- Topics: cassandra, docker, hazelcast, kubernetes, spring-boot
- Language: Java
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hazelcast with CassandraDB
Hazelcast used to cache the data of CassandraDB## Getting Started
This project includes:
- CREATE, Retrieve, Update, Delete Operations
- MVC Pattern
- Web Service
- Logger
- Validators and custom validator annotation
- Exceptions
- Regex Pattern Matchers
- Global exception handler
- Message formatter
- Custom model mapper
- Lombok
- CassandraDB
- Hazelcast
- Application yml profiles
- Builder pattern
- Hazelcast kubernetes discovery and sync with other scaled services
# Used Annotations- @Service
- @RestController
- @RequestMapping
- @ResponseBody
- @GetMapping
- @PostMapping
- @PutMapping
- @DeleteMapping
- @ControllerAdvice
- @ExceptionHandler
- @Id
- @NotNull
- @Pattern
- @Documented
- @Constraint
- @Target
- @Retention
- @Configuration
- @EnableHazelcastRepositories
- @Value
- @Bean
- @Profile
- @Data
- @AllArgsConstructor
- @NoArgsConstructor
- @KeySpace
- @PostConstruct
- Custom Validator Annotation# Start Application With Docker
- Build Jar with Gradle
Linux:
```
gradle build
```
Windows:
```
./gradlew build
```
- Learn Docker version
```
docker -v
```
if docker is not installed:
* [Docker For Windows](https://docs.docker.com/docker-for-windows/install/) - Download Setup
- Build docker in project root directory
```
docker build -f Dockerfile -t hazelcast-with-cassandradb .
```
- Show docker builded images
```
docker images
```
- Run dockerized cassandradb with exposed port
```
docker run --name my-cassandra -d -P -p 9042:9042 cassandra:2.2.11
```
- Run docker image with exposed port
```
docker run -d --name hazelcast-with-cassandradb -p 9090:9090 hazelcast-with-cassandradb
```
- Run docker image with custom cassandra ip. Updated variable in Application.yml
```
docker run -d --name hazelcast-with-cassandradb -p 9090:9090 -e SPRING.DATA.CASSANDRA.CONTACT-POINTS='172.16.44.200' hazelcast-with-cassandradb
```
## ContributingPlease read [CHANGELOG.md](https://github.com/bilalvdemir/hazelcastwithcassandra/blob/master/CHANGELOG.md) for details on our code of conduct, and the process for submitting pull requests to us.
## Authors
* **Bilal Demir** - *Initial work* - [bilalvdemir](https://github.com/bilalvdemir)