[akka-user] Re: akka persistence query and event tagging

2016-05-24 Thread Olger Warnier
Without knowledge of your domain, the tag would be something like "Customer" and the ID would be customer_456 (or a UUID) any reason you like to attach the account_123 upfront ? Looks like some kind of relation between account and customer. On Tuesday, May 24, 2016 at 8:37:22 PM UTC+2,

[akka-user] Re: akka persistence query and event tagging

2016-05-24 Thread Olger Warnier
I'd suggest to use tags per aggregate root and have the account id as the persistenceId. when you use cluster sharding, that gives a great option to 'instantiate' a specific instance of the aggregate root and for the query side you use the tags.. works quite well in practice. kind regards,

[akka-user] Re: Akka Persistence Event Sourcing with Read Projections / Views?

2015-08-15 Thread Olger Warnier
Hi Paul, You can indeed use a View to store your data in such a way that it works for your queries. With the Akka 2.3.x you need to create a view for every aggregate root (Client for your situation). That adds some overhead in handling. (as you need to trigger these views when changes have

Re: [akka-user] Re: Akka Persistence on the Query Side: The Conclusion

2015-05-09 Thread Olger Warnier
.  Kind regards, Olger On Fri, May 8, 2015 at 10:58 PM, Richard Rodseth rrods...@gmail.com wrote: Hi Olger Could you please elaborate a bit on your appoach? I'm not sure I follow. Thanks. On Fri, May 8, 2015 at 4:17 AM, Olger Warnier ol...@spectare.nl wrote: Hi Alejandro, You have a number

Re: [akka-user] Re: Akka Persistence on the Query Side: The Conclusion

2015-05-08 Thread Olger Warnier
Hi Alejandro, You have a number of options - when you have a single persistence Id, write a view for that - when you want to aggregate events of several persistence ids, you can do so via the event store (approach of Martin (with Kafka) and Greg (event store) )  Or you can aggregate the

[akka-user] Re: Akka Persistence on the Query Side: The Conclusion

2015-04-28 Thread Olger Warnier
but the history and code is there. /Magnus Den fredag 24 april 2015 kl. 16:43:46 UTC+2 skrev Olger Warnier: Well, I found that the sequence numbers are actually generated on a per persistent actor instance basis. So that makes replay for a single aggregateId based with limits

Re: [akka-user] Akka Persistence on the Query Side: The Conclusion

2015-04-24 Thread Olger Warnier
Hi Roland / List, I am looking into an addition/mutation to the Persistency layer that allows storage of an aggregateId (more or less the whole 'tag' idea without being able to have multiple tags to start out with) with a replay (for the view) based on that aggregateId. (bit like the DDD

Re: [akka-user] Akka Persistence on the Query Side: The Conclusion

2015-04-24 Thread Olger Warnier
on the way to solve this (some kind of atomic sequence generator shared between aggregates ?) On Friday, April 24, 2015 at 10:42:04 AM UTC+2, Olger Warnier wrote: Hi Roland / List, I am looking into an addition/mutation to the Persistency layer that allows storage of an aggregateId (more or less

[akka-user] Re: Akka persistence: Optimistic Locking

2014-11-14 Thread Olger Warnier
Hi Martin, In my experience, the last update for a specific sequence number is kept. With a replay, you'll end up with a mixed state. Kind regards, Olger On Friday, November 14, 2014 1:16:27 PM UTC+1, Martin Jöhren wrote: Hi, what would happen when two different servers somehow create a

Re: [akka-user] Sharding and Persistent Views

2014-10-09 Thread Olger Warnier
Hi Prakhyat, I've the same situation (this is discussed in length in other topics) The solution at this moment is to create another persistent actor that stores the fact that change has happened to on of your other persistent actors (probably the aggregate root) Thereafter you add a view

[akka-user] Re: Cluster Sharding and dynamically adding actors at runtime across the cluster

2014-10-01 Thread Olger Warnier
Hi Mike, Did you look at the distributed worker pattern ? See: http://typesafe.com/activator/template/akka-distributed-workers That may be a better match looking at your use case. Kind regards, Olger On Tuesday, September 30, 2014 11:41:59 PM UTC+2, Michael Kohout wrote: Hi Folks-

Re: [akka-user] Critical Understanding Behavior Of PersistentView :Event Sourcing

2014-09-26 Thread Olger Warnier
Hi Prakhyat, On Wednesday, September 24, 2014 8:56:46 PM UTC+2, Prakhyat Mallikarjun wrote: Hi Björn, Thanks again. I am bit clear now but still have some gaps. [Björn]The persistent view is meant to be a view of the state built up from the events of a persistent actor, not just a

Re: [akka-user] Re: Integrating Distributed Systems composed of a different bounded contexts

2014-09-26 Thread Olger Warnier
is different application deployed in different JVM's. The cluster sharding again wouldn't help.*Also how to do updates in sync when bounded contexts are deployed in different JVM's?* -Prakhyat M M On Friday, 26 September 2014 00:38:58 UTC+5:30, Olger Warnier wrote: Hi Prakhyat, I'd use

Re: [akka-user] Re: Integrating Distributed Systems composed of a different bounded contexts

2014-09-26 Thread Olger Warnier
code. Do you recommend using ask? -Prakhyat M M On Friday, 26 September 2014 16:23:12 UTC+5:30, Olger Warnier wrote: Hi Prakhyat, When you use the ‘ask’ / pipeTo pattern, it can all be sync, kills your performance though. So when the load won’t be too high, that may be an option

Re: [akka-user] Critical Understanding Behavior Of PersistentView :Event Sourcing

2014-09-26 Thread Olger Warnier
, Olger Warnier wrote: Hi Prakhyat, On Wednesday, September 24, 2014 8:56:46 PM UTC+2, Prakhyat Mallikarjun wrote: Hi Björn, Thanks again. I am bit clear now but still have some gaps. [Björn]The persistent view is meant to be a view of the state built up from the events of a persistent

[akka-user] Re: Integrating Distributed Systems composed of a different bounded contexts

2014-09-25 Thread Olger Warnier
Hi Prakhyat, I'd use persistent actors with cluster sharding. You can start the the ClusterSharding system for different typenames that reflect a bounded context - or - a single aggregate root (in our situation) like: ClusterSharding(system).start( typeName = AggregateRootNameHere And

Re: [akka-user] Re: Event Sourcing and Drools Rule Engine

2014-09-09 Thread Olger Warnier
and after receiving command. -Prakhyat M M On Monday, 8 September 2014 23:07:03 UTC+5:30, Olger Warnier wrote: Hi Prakhyat, Wrap an a tor around it, you be able to integrate it in a number of ways. An option is to build a view that passes on the right events to the drools actor. Bit

Re: [akka-user] Re: DDD/Event Sourcing and Business experts

2014-09-09 Thread Olger Warnier
+5:30, Olger Warnier wrote: Hi Prakhyat, Vaughn Vernon has some articles an how to go about DDD and akka see https://vaughnvernon.co for the details. Your questions about the way to interact with business experts may get better answers in the DDD/CQRS group. To give you some options: You

Re: [akka-user] exactly *one* persistence actor with the same persistenceId active ?

2014-09-08 Thread Olger Warnier
Hi Ashley, Events are assigned the same number as each instance starts counting in the same way. It appears that the last one written with a specific sequence number is eventually kept. In my situation, I've solved this by using a cluster singleton for this persistent actor.  Kind

Re: [akka-user] exactly *one* persistence actor with the same persistenceId active ?

2014-09-08 Thread Olger Warnier
), I’ll remove this as it will become a bottleneck in the cluster sharded setup.  Kind regards,  Olger On Mon, Sep 8, 2014 at 8:18 AM, Ashley Aitken amait...@gmail.com wrote: Thanks for your post Olger. On Monday, 8 September 2014 14:11:14 UTC+8, Olger Warnier wrote: Events are assigned

[akka-user] Event Sourcing and Drools Rule Engine

2014-09-08 Thread Olger Warnier
Hi Prakhyat, Wrap an a tor around it, you be able to integrate it in a number of ways. An option is to build a view that passes on the right events to the drools actor. Bit of a broad answer, hard to be more specific Kind regards, Olger -- Read the docs: http://akka.io/docs/

[akka-user] DDD/Event Sourcing and Business experts

2014-09-08 Thread Olger Warnier
Hi Prakhyat, Vaughn Vernon has some articles an how to go about DDD and akka see https://vaughnvernon.co for the details. Your questions about the way to interact with business experts may get better answers in the DDD/CQRS group. To give you some options: You may write a DSL used inside the

Re: [akka-user] Akka Persistence on the Query Side: The Conclusion

2014-09-05 Thread Olger Warnier
Hi Roland, This will certainly simplify my code. So from my side it will be a good 'start' to experiment with these additions in practice and see what's missing. Kind regards, Olger On Friday, September 5, 2014 9:49:20 AM UTC+2, Martin Krasser wrote: On 05.09.14 09:09, Roland Kuhn

[akka-user] Re: Implementation of fire and forget kind of webservice

2014-09-05 Thread Olger Warnier
On Friday, September 5, 2014 5:14:22 PM UTC+2, Olger Warnier wrote: Hi Jitendra, You may want to look at the spray client, a nice piece of work that helps you to call http based services in an async way. Oh: It's based on akka actors.. Kind regards, Olger On Friday, September

[akka-user] Re: Implementation of fire and forget kind of webservice

2014-09-05 Thread Olger Warnier
Hi Jitendra, You may want to look at the spray client, a nice piece of work that helps you to call http based services in an async way. Kind regards, Olger On Friday, September 5, 2014 10:53:18 AM UTC+2, jitendra shelar wrote: Hi, I am newbie to Akka. I am developing a payment

[akka-user] Re: Akka Persistence on the Query Side: The Conclusion

2014-08-28 Thread Olger Warnier
Hi Roland, great conclusion, with everything said till now in mind. I'd like to mention a view points and like to hear if this matches your thoughts: The QueryByTypeDeterministic(type, from, to) mentioned by Martin matches with the way I've been using DDD+CQRS for last 2 years. Meaning that

Re: [akka-user] Improving Akka Persistence wrt CQRS/ES/DDD

2014-08-22 Thread Olger Warnier
Quite a read on a phone during my holidays. Very insightful and adds a lot of considerations around the different topics. I'd like to mention that the current construct of the persistent view is very helpful in decoupling. I can create new listeners (e.g. PersistentView) based on the events

Re: [akka-user] Improving Akka Persistence wrt CQRS/ES/DDD

2014-08-22 Thread Olger Warnier
Quite a read on a phone during my holidays. Very insightful and adds a lot of considerations around the different topics. I'd like to mention that the current construct of the persistent view is very helpful in decoupling. I can create new listeners (e.g. PersistentView) based on the events

Re: [akka-user] Will Akka Persistence Store Take Lots of Disk Space and Grow Faster Rate(Highly OLTP)?

2014-08-15 Thread Olger Warnier
Hi Prakhyat, With DDD and CQRS, the state changes storage and publication are key part of the architecture. When you don't need the DDD part, you could use a persistence processor that handles the transactions (still possible to do cqrs in that way) Although your story makes me wonder, when

[akka-user] Re: Akka 2.3.4 Released - Major updates to Akka Persistence

2014-07-01 Thread Olger Warnier
Nice, thanks :) A small question, the EventsourcedProcessor will be replaced by the PersistentProcessor (as my compile messages tell me :) ) It seems that it's not available in the 2.3.4 source, is that right ? The documentation states the use of the PersistentActor instead of the

Re: [akka-user] Re: Akka 2.3.4 Released - Major updates to Akka Persistence

2014-07-01 Thread Olger Warnier
On Tue, Jul 1, 2014 at 6:05 PM, Patrik Nordwall patrik@gmail.com javascript: wrote: Let's continue with questions at akka-user. /Patrik Good idea... The groups interface confuses me once in a while. On Tue, Jul 1, 2014 at 5:53 PM, Olger Warnier ol...@spectare.nl javascript

Re: [akka-user] Re: Akka 2.3.4 Released - Major updates to Akka Persistence

2014-07-01 Thread Olger Warnier
One small note for people that may run into this issue: Our project uses the leveldb in a shared mode 'native = off' in our multi-jvm test setup. (inmem in our inproc setup) It appears that the leveldb dependency gives issues in this setup. The whole thing is described here

Re: [akka-user] akka extensions with arguments, any wise words ?

2014-05-10 Thread Olger Warnier
that arguments to its constructor must come from the ActorSystem itself, hence from configuration as you also figured out. You can use system.dynamicAccess in order to reflectively create your factory from a fully qualified class name. Regards, Roland On Fri, May 9, 2014 at 6:14 PM, Olger Warnier

[akka-user] Re: [akka-persistence] Approach to View usage when using EventsourcedProcessors in a DDD context

2014-05-10 Thread Olger Warnier
Hi Erich, Different options are discussed the Views with multiple processors topic see:https://groups.google.com/forum/#!topic/akka-user/dhyZ-WpwPz4 I've chosen to use a special event that is stored in the eventstore that aggregates all changes in the different EventsourcedProcessors. These

Re: [akka-user] Akka Persistence - Views with multiple processors

2014-05-09 Thread Olger Warnier
On Friday, May 9, 2014 5:58:42 PM UTC+2, Paweł Kaczor wrote: On Friday, May 9, 2014 4:37:16 PM UTC+2, Olger Warnier wrote: On Friday, May 9, 2014 4:29:32 PM UTC+2, Paweł Kaczor wrote: On Sunday, April 20, 2014 4:59:22 PM UTC+2, Patrik Nordwall wrote: The User actor persist

Re: [akka-user] Akka Persistence - Views with multiple processors

2014-04-22 Thread Olger Warnier
On Monday, April 21, 2014 9:07:03 AM UTC+2, Patrik Nordwall wrote: On Sun, Apr 20, 2014 at 6:05 PM, Olger Warnier ol...@spectare.nljavascript: wrote: On Sunday, April 20, 2014 4:59:22 PM UTC+2, Patrik Nordwall wrote: On Sun, Apr 20, 2014 at 2:47 PM, Olger Warnier ol...@spectare.nlwrote

Re: [akka-user] Akka Persistence - Views with multiple processors

2014-04-22 Thread Olger Warnier
AM UTC+2, Patrik Nordwall wrote: On Tue, Apr 22, 2014 at 11:32 AM, Olger Warnier ol...@spectare.nljavascript: wrote: On Monday, April 21, 2014 9:07:03 AM UTC+2, Patrik Nordwall wrote: On Sun, Apr 20, 2014 at 6:05 PM, Olger Warnier ol...@spectare.nlwrote: On Sunday, April 20, 2014 4

Re: [akka-user] Akka Persistence - Views with multiple processors

2014-04-20 Thread Olger Warnier
a view that creates sub-views on demand from the replayed meta-data. The sub-views would forward to the parent aggregated view. /Patrik 19 apr 2014 kl. 20:46 skrev Olger Warnier ol...@spectare.nl javascript: : Hi Martin, Had to think about it a little, hereby my follow up. (hope you

Re: [akka-user] Akka Persistence - Views with multiple processors

2014-04-20 Thread Olger Warnier
On Sunday, April 20, 2014 4:59:22 PM UTC+2, Patrik Nordwall wrote: On Sun, Apr 20, 2014 at 2:47 PM, Olger Warnier ol...@spectare.nljavascript: wrote: Hi Patrick, Sounds like an interesting approach, storing some meta-data at the view may help to check / show the reliability