Re: A use-case for Flink and reactive systems

2018-07-06 Thread Fabian Hueske
Hi Yersinia, let me reply to some of your questions. I think these answers should also address most of Mich's questions as well. > What you are saying is I can either use Flink and forget database layer, or make a java microservice with a database. Mixing Flink with a Database doesn't make any

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Yersinia Ruckeri
I guess my initial bad explanation caused confusion. After reading again docs I got your points. I can use Flink for online streaming processing, letting it to manage the state, which can be persisted in a DB asynchronously to ensure savepoints and using queryable state to make the current state

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Mich Talebzadeh
Hi, What you are saying is I can either use Flink and forget database layer, or make a java microservice with a database. Mixing Flink with a Database doesn't make any sense. I would have thought that moving with microservices concept, Flink handling streaming data from the upstream microservice

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Mich Talebzadeh
Hi Fabian, On your point below … Basically, you are moving the database into the streaming application. This assumes a finite size for the data in the streaming application to persist. In terms of capacity planning how this works? Some applications like Fraud try to address this by deploying

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Yersinia Ruckeri
It helps, at least it's fairly clear now. I am not against storing the state into Flink, but as per your first point, I need to get it persisted, asynchronously, in an external database too to let other possible application/services to retrieve the state. What you are saying is I can either use

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Fabian Hueske
Hi Yersinia, The main idea of an event-driven application is to hold the state (i.e., the account data) in the streaming application and not in an external database like Couchbase. This design is very scalable (state is partitioned) and avoids look-ups from the external database because all state

Re: A use-case for Flink and reactive systems

2018-07-05 Thread Yersinia Ruckeri
My idea started from here: https://flink.apache.org/usecases.html First use case describes what I am trying to realise ( https://flink.apache.org/img/usecases-eventdrivenapps.png) My application is Flink, listening to incoming events, changing the state of an object (really an aggregate here) and

Re: A use-case for Flink and reactive systems

2018-07-04 Thread Jörn Franke
I think it is a little bit overkill to use Flink for such a simple system. > On 4. Jul 2018, at 18:55, Yersinia Ruckeri wrote: > > Hi all, > > I am working on a prototype which should include Flink in a reactive systems > software. The easiest use-case with a traditional bank system where I

Re: A use-case for Flink and reactive systems

2018-07-04 Thread Mich Talebzadeh
Looks interesting. As I understand you have a microservice based on ingestion where a topic is defined for streaming messages that include transactional data. These transactions should already exist in your DB. For now we look at DB as part of your microservices and we take a logical view of it.

A use-case for Flink and reactive systems

2018-07-04 Thread Yersinia Ruckeri
Hi all, I am working on a prototype which should include Flink in a reactive systems software. The easiest use-case with a traditional bank system where I have one microservice for transactions and another one for account/balances. Both are connected with Kafka. Transactions record a transaction