Coder Social home page Coder Social logo

sushi-bar / sushi-bar-be Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 1.91 MB

Back End of the sushi bar application. Provides JSON/REST API. Uses Apache Kafka

License: Apache License 2.0

Java 100.00%
spring-boot rest-api docker-compose kafka kafka-connect mongodb avro test-containers java21

sushi-bar-be's People

Contributors

dependabot[bot] avatar egch avatar sarthak-97 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ipadawan

sushi-bar-be's Issues

To fix issue with @SpringBootTest

Bootstrap issue while executing SpringBootTest

2023-01-14 19:42:11.175 WARN 4987 --- [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:29092) could not be established. Broker may not be available. 2023-01-14 19:42:12.390 INFO 4987 --- [| adminclient-1] org.apache.kafka.clients.NetworkClient : [AdminClient clientId=adminclient-1] Node -1 disconnected.

Business case processing order

Once the order is submitted figured out how to process the order:

  • should be handled by a listener or pick it up from another rest api
  • how to transform it and to submit as a meal or a task for the cook

Enhance Documentation

  • Architecture Outline
  • Usage Guide: Comprehensive usage instructions and examples.
  • Best Practices: Recommendations for effective utilisation.

to complete the cook app

Basic functionalities for the cook app:

  1. process the orders from the topic order
  2. submit a new message in the topic meal

User Registration

As a new user, I want to register by creating a username so that the system can remember me and my data.
Authentication should be based on an external identity provider, we could start with gmail.

source

image

Kafka exception at startup

00:59:40.739 [main] ERROR o.s.kafka.core.KafkaAdmin - Could not configure topics org.springframework.kafka.KafkaException: Timed out waiting to get existing topics at org.springframework.kafka.core.KafkaAdmin.lambda$checkPartitions$11(KafkaAdmin.java:520) at java.base/java.util.HashMap.forEach(HashMap.java:1429) at org.springframework.kafka.core.KafkaAdmin.checkPartitions(KafkaAdmin.java:499) at org.springframework.kafka.core.KafkaAdmin.addOrModifyTopicsIfNeeded(KafkaAdmin.java:392) at org.springframework.kafka.core.KafkaAdmin.initialize(KafkaAdmin.java:258) at org.springframework.kafka.core.KafkaAdmin.afterSingletonsInstantiated(KafkaAdmin.java:222) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:986) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:959) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) at org.springframework.boot.SpringApplication.run(SpringApplication.java:334) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343) at org.virtualsushibar.backend.app.MainApplication.main(MainApplication.java:12) Caused by: java.util.concurrent.TimeoutException: null at java.base/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1960) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2095) at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:180) at org.springframework.kafka.core.KafkaAdmin.lambda$checkPartitions$11(KafkaAdmin.java:502) ... 15 common frames omitted

Cook - basic use case

  • listen for the order in the orders topic
  • simulate a delay representing the time spent for the meal preparation
  • publishing the processed order in the corresponding processed-order topic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.