Giter Club home page Giter Club logo

eventuate-tram-docs's Introduction

Eventuate Tram Documentation

This is the manual for the Eventuate Tram and Eventuate Tram Saga projects.

Eventuate Tram is a platform for managing distributed data in a microservice architecture. It implements the Saga pattern, which implements transactions multiple services, and the CQRS pattern, which implements queries that retrieve data from multiple services. Eventuate Tram enables a services to send and receive messages as part of an database transaction. It does this by implementing the Transactional outbox pattern. This pattern is foundation of maintaining data consistency within a microservice architecture.

You can build the HTML documentation by running ./gradlew asciidoctor.

eventuate-tram-docs's People

Contributors

cer avatar dartartem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eventuate-tram-docs's Issues

Document finer-grained transport configuration

Currently, the docs describe classes such as TramJdbcKafkaConfiguration which bundle together producer (JDBC-based) and consumer (whatever message broker). CQRS services, for example, only use the consumer and so use currently undocumented configuration classes.

Document how to customize JSON mapping

For example:

  static {
    JSonMapper.objectMapper.registerModule(new JavaTimeModule());
    JSonMapper.objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
  }

Add CDC container configuration examples

it would be good to have examples to copy/paste

  • Simple - single pipeline - different databases: MySQL, Postgres WAL, MS SQL server
  • Complex - multiple pipelines

Troubleshooting an unhealthy CDC due to failing binlogEntryReaderHealthCheck

  "details": {
    "binlogEntryReaderHealthCheck": {
      "status": "DOWN",
      "details": {
        "error-1": "Reader with id reader1 has not received message for 333039 milliseconds",
        "detail-1": "Reader with id reader1 is connected"
      }
    },
  1. Look for exceptions in log
  2. Verify cdc_monitoring exists
  3. Verify that DB is configured for replication.

Document how to run CDC service without Docker

For example

curl --location -o SpringBoot.jar https://dl.bintray.com/eventuateio-oss/eventuate-maven-rc/io/eventuate/tram/core/eventuate-tram-cdc-mysql-service/0.21.3.RC3/eventuate-tram-cdc-mysql-service-0.21.3.RC3.jar

export SPRING_DATASOURCE_URL=jdbc:mysql://mysql/eventuate
export SPRING_DATASOURCE_USERNAME=mysqluser
export SPRING_DATASOURCE_PASSWORD=mysqlpw
export SPRING_DATASOURCE_DRIVER_CLASS_NAME=com.mysql.jdbc.Driver
export EVENTUATELOCAL_KAFKA_BOOTSTRAP_SERVERS=kafka:9092
export EVENTUATELOCAL_ZOOKEEPER_CONNECTION_STRING=zookeeper:2181
export EVENTUATELOCAL_CDC_DB_USER_NAME=root
export EVENTUATELOCAL_CDC_DB_PASSWORD=rootpassword
export EVENTUATELOCAL_CDC_POLLING_INTERVAL_IN_MILLISECONDS=500
export EVENTUATELOCAL_CDC_MAX_EVENTS_PER_POLLING=1000
export EVENTUATELOCAL_CDC_MAX_ATTEMPTS_FOR_POLLING=100
export EVENTUATELOCAL_CDC_POLLING_RETRY_INTERVAL_IN_MILLISECONDS=500
export EVENTUATELOCAL_CDC_READER_NAME=${EVENTUATELOCAL_CDC_READER_NAME}
export EVENTUATELOCAL_CDC_OFFSET_STORE_KEY=${EVENTUATELOCAL_CDC_OFFSET_STORE_KEY}
export EVENTUATELOCAL_CDC_MYSQL_BINLOG_CLIENT_UNIQUE_ID=${EVENTUATELOCAL_CDC_MYSQL_BINLOG_CLIENT_UNIQUE_ID}
export EVENTUATELOCAL_CDC_READ_OLD_DEBEZIUM_DB_OFFSET_STORAGE_TOPIC=${EVENTUATELOCAL_CDC_READ_OLD_DEBEZIUM_DB_OFFSET_STORAGE_TOPIC}

java -jar SpringBoot.jar ...

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.