Skip to content

luccasdev/poc-kafka-cassandra-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


ArminC AutoExec

Proof of Concept using Spring boot with Kafka and Cassandra (NoSQL) to manager orders.

With Integration Tests and Weblayer Tests using JUnit 5

GitHub last commit GitHub issues GitHub pull requests

TechonologiesFeaturesAuthor ContactLicense


Technologies

  • Back-end
    • Java 11
    • Spring Boot
    • Spring Data
    • Cassandra
    • Kafka
    • Lombok
    • Maven
    • Slf4j
    • JUnit 5

Features

1 - Find Order by Id

Example:
Request:

GET /order/v1/{orderId} HTTP/1.1
Path Parameter: Order id to find

Success:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "title": "Big Mac",
    "description": "Lanche do McDonalds :)"
}

2 - Find All Orders

Example:
Request:

GET /order/v1 HTTP/1.1

Success:

HTTP/1.1 200 OK
Content-Type: application/json

[
    {
        "id": "39d9a682-0ecb-41fd-b38c-3f2469a028d0",
        "title": "Big Mac",
        "description": "Lanche do McDonalds :)"
    },
    {
        "id": "6a78e09b-5e86-4970-bc76-ecec06a95107",
        "title": "Milk Shake",
        "description": "Bem gelado!"
    }
]

3 - Creating New Order (Sending to Kafka Queue)

Example:
Request:

POST /order/v1 HTTP/1.1
Content-Type: application/json
Body: 
{
    "title": "Big Mac",
    "description": "Lanche do McDonalds :)"
}
 

Success:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "id": "18b57f64-2654-4084-97e9-d4b565e4abb2",
    "title": "Big Mac",
    "description": "Lanche do McDonalds :)"
}

Contact

License

License: CC BY-NC-SA 4.0

About

Proof of Concept using Spring boot with Kafka and Cassandra (NoSQL) to manager orders.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages