networknt / light-eventuate-4j

An eventual consistency framework based on Event Sourcing and CQRS on top of light-4j and Kafka
Apache License 2.0
59 stars 20 forks source link

[feauter/discussion] Blockchain as event store #61

Open archenroot opened 6 years ago

archenroot commented 6 years ago

This is more place holder for discussion/feature request to be adopted maybe in 1-2 years. I think blockchain is "nothing more" than protected event store :-) and such technology could be very valuable especially for banking domain, meaning we will protect all events from any kind of manipulation. Of course today's technologies on blockain are to me still immature solution and it will take another decade to mature, but also some banks already started implementing its own blochain technologies mostly to do fast transfer of assets, but at the same moment it is microservice event store or could be reused....

Free discussion here on this topic, ideas, criticism welcomed.

stevehu commented 6 years ago

Great minds think alike!!! It is in my agenda for a long time. There are two technical obstacles and I am planning to work on it once I have the capacity.

  1. The current blockchain technology doesn't scale to support high number of transactions. I am thinking about how to merge Kafka and Blockchain together to resolve the throughput issue. Transactions can be sharded to different clusters.

  2. Proof of work needs to be changed as it is burning too much energy. Need to find a new way of hierarchical consensus algorithm. Not necessary involves every node as majority of nodes just users. They only care about their own transactions. The should only have the blocks they are interested in.

There are a lot of other thoughts in my mind but I need time to put them in paper :)