Giter Club home page Giter Club logo

blockmed-eth-event-listener's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

blockmedical

blockmed-eth-event-listener's Issues

process will be killed about 60+ minutes

image

The process of our listener will be killed every 60+ minutes.
We installed it as a Linux system service and setup to auto restart.
This issue should be fixed in the future, otherwise, we might lose some events during the process restart period.

ES term aggregation limitation

Refer to this article for more detail.

Currently, we use term_aggs in our search template to calculate purchase count in runtime.
If all data stored in only one node, there is no problem.
So we can do it for now.
If data stores cross multi-nodes and data size is getting bigger, we have to resolve this problem.

There is a solution, we add a new field in existing blockmed-trans- index and store total purchase count. When event_watcher got PurchaseTxRecord event, we update this field to +1.
Then we don't need term aggs to count this purchase count and a simple query is all we need.

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.