Coder Social home page Coder Social logo

tboydar / bds Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guolijing/bds

0.0 1.0 0.0 3.39 MB

Blockchain data parsing and persisting results

Home Page: https://bds.jdcloud.com/

License: Apache License 2.0

Makefile 0.35% Go 99.50% Smarty 0.15%

bds's Introduction

BDS

logo

Introduction

JD Cloud Blockchain Data Service (BDS) is a realtime data aggregating, analyzing and visualization service for chain-like unstructured data from all kinds of 3rd party Blockchains

Splitter is the key module of Blockchain Data Service (BDS) and provides data analysis capability.

Splitter is responsible for consuming blockchain data from message queue (kafka) and inserting data into persistent data storage services (relational database, data warehouse, etc.) for further processing

Architecture

Architecture

Environment Deployment

Install BDS

Environment initialization

Before compiling and running BDS, you must install go's compilation environment locally: go install

Install Splitter steps

  1. Set the path of project : $GOPATH/src/github.com/jdcloud-bds/bds/
  2. Inputgo build -v github.com/jdcloud-bds/bds/cmd/bds-splitter,compile to get executable file bds-splitter
  3. Build new configuration file splitter.conf, see /config/splitter_example.conf configuration file template
  4. Run program ./bds-splitter -c splitter.conf

Install confluent and kafka

Install kafka

See kafka

Modify config/server.properties
  • message.max.bytes=1048576000

Install confluent

see confluent

Unzip the confluent package and run Confluent REST Proxy

Modify /etc/kafka-rest/kafka-rest.properties
  • max.request.size = 1048576000
  • buffer.memory = 1048576000
  • send.buffer.bytes = 1048576000

Database

Database we now support SQL Server, PostgreSQL, you can choose one as a data storage method.

SQL Server

Buy JCS For SQL Server

PostgreSQL

Buy JCS For PostgreSQL

After you run the database, you need to manually create new database and use the database name initialization splitter.conf.

Install Grafana

See Grafana Official

Source code

Splitter Modules

Development Steps

  1. Define the data structure of Kafka messages.
  2. Define table structure.
  3. Analyze Kafka message and store data in database.

Contributing

Contributing guide

License

Apache License 2.0

Project Demonstration

Blockchain Data Service

bds's People

Contributors

sallery-x avatar pangang1992 avatar tibelf avatar

Watchers

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