Giter Club home page Giter Club logo

food-ordering-system's Introduction

Food-Ordering-System


사전 준비

  • 도커
  • 도커 컴포즈

1. Kafka 초기화

Zookeeeper 실행

  • infrastructure/docker-compose 경로로 이동 후 다음을 실행
  • 카프카 실행시 zookeeper를 확인하므로 zookeeper 를 먼저 실행해야 함
docker-compose -f common.yml -f zookeeper.yml up
echo ruok | nc localhost 2181
  • imok 응답이 오면 잘 기동된 것

카프카 클러스터 실행

infrastructure/docker-compose 경로로 이동 후 다음을 실행

docker-compose -f common.yml -f kafka_cluster.yml up

카프카 초기화

docker-compose -f common.yml -f init_kafka.yml up

확인

  • localhost:9000 접속
  • 상단의 Add Cluster 클릭
    • 클러스터명: food-ordering-system-cluster
    • zookeeper 호스트: zookeeper:2181
    • save
  • 클러스터 상태를 웹에서 확인 가능

종료 후 재실행

  • 볼륨 설정을 했으므로, 카프카를 재실행하더라도 상태가 유지됨
  • kafka 클러스터 정지 -> zookeeper 정지
  • zookeeper 실행 -> kafka 실행
  • 상태를 유지하는 것을 확인 가능

food-ordering-system's People

Contributors

ttasjwi avatar

Watchers

 avatar

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.