Coder Social home page Coder Social logo

houzhiyong / event-store-service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from choerodon/event-store-service

0.0 2.0 0.0 195 KB

Event Store Service implements data consistency,and the message queue kafka is supported.

Home Page: http://choerodon.io

License: Apache License 2.0

Smarty 1.95% Dockerfile 0.36% Java 87.29% Groovy 10.40%

event-store-service's Introduction

Event Store Service

event-store-service is for data consistency support. It is necessary to cooperate with choerodon-starter-event-producer and choerodon-starter-event-consumer to implement data consistency. Currently, the message queue kafka is supported.

Feature

  • Complete the front page. After the failed message is sent back to event-store-service, manually click on Retry on the page to resend the message.
  • rabbitmq, redis, and rocketmq may also be supported.

Requirements

Installation and Getting Started

  1. Start up eureka-server

  2. Start up kafka

  3. Create a event_store_service database in mysql:

    CREATE USER 'choerodon'@'%' IDENTIFIED BY "123456";
    CREATE DATABASE event_store_service DEFAULT CHARACTER SET utf8;
    GRANT ALL PRIVILEGES ON event_store_service.* TO choerodon@'%';
    FLUSH PRIVILEGES;

    New file of "init-local-database.sh" in the root directory of the event-store-service project:

    mkdir -p target
    if [ ! -f target/choerodon-tool-liquibase.jar ]
    then
        curl http://nexus.choerodon.com.cn/repository/choerodon-release/io/choerodon/choerodon-tool-liquibase/0.5.2.RELEASE/choerodon-tool-liquibase-0.5.2.RELEASE.jar -o target/choerodon-tool-liquibase.jar
    fi
    java -Dspring.datasource.url="jdbc:mysql://localhost/event_store_service?useUnicode=true&characterEncoding=utf-8&useSSL=false" \
     -Dspring.datasource.username=choerodon \
     -Dspring.datasource.password=123456 \
     -Ddata.drop=false -Ddata.init=true \
     -Ddata.dir=src/main/resources \
     -jar target/choerodon-tool-liquibase.jar

    And executed in the root directory of the event-store-service project:

    sh init-local-database.sh
  4. Then run the project in the root directory of the project:

    mvn spring-boot:run

Usage

  • configuration

    choerodon:
        event:
          store:
              queue-type: kafka # Message Queue Type
              publish-msg-thread-num: 5 # Number of threads sending messages to the message queue
              query-status-thread-num: 5 # The number of threads that perform the lookup of interface 

Dependencies

Links

Reporting Issues

If you find any shortcomings or bugs, please describe them in the issue.

How to Contribute

Pull requests are welcome! Follow to know for more information on how to contribute.

event-store-service's People

Contributors

devane001 avatar flyleft avatar superlee007 avatar vinkdong avatar zmfcn avatar

Watchers

James Cloos avatar  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.