Git Product home page Git Product logo

account-system's Introduction

Account-Management-System

Final Project: Achieve a AccountManagementSystem and MasterCardApp, we can register a new account, then the system will generate a new id and a new unique token at the same time, when MasterCardApp send a token to AccountManagementSystem, it will validate the token in the DB and send the status back to the MasterCardApp.

Connect MySQL DB

  • Add MySQL dependency first.
  • Configure the application.properties like the following.
spring.datasource.url=jdbc:mysql://{Hostname}:{port}/{database}
spring.datasource.username={username}
spring.datasource.password={password}

Install Kafka

Link: https://www.conduktor.io/kafka/how-to-install-apache-kafka-on-mac

Add Path Varible in zsh Mac permanantly

echo 'export PATH="$PATH:/Users/xiao/kafka_2.13-3.3.2/bin"' >> ~/.zshenv
source ~/.zshenv

// test
echo $PATH
kafka-topics.sh

From the root of Apache Kafka, run the following command to start Zookeeper:

~/kafka_2.13-3.3.2/bin/zookeeper-server-start.sh ~/kafka_2.13-3.3.2/config/zookeeper.properties

Open another Terminal window and run the following command from the root of Apache Kafka to start Apache Kafka.

~/kafka_2.13-3.3.2/bin/kafka-server-start.sh ~/kafka_2.13-3.3.2/config/server.properties

Project details

MasterCardApp

  • producer: generate token and send it to AccountManagementSystem
  • consumer: get validated result

AccountManagementSystem

  • producer: receive token, store in Post_Status DB
  • consumer: get status from Post_Status DB, send to MasterCardApp

Error Notes

  1. Error while fetching metadata with correlation id 1 : {topic=LEADER_NOT_AVAILABLE} Solution: https://blog.csdn.net/csdn_xpw/article/details/105179901

account-system's People

Contributors

xxiaomm 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.