spring-boot-akka-event-sourcing-starter | spring boot akka persistance event | Microservice library
kandi X-RAY | spring-boot-akka-event-sourcing-starter Summary
kandi X-RAY | spring-boot-akka-event-sourcing-starter Summary
For how to use the event sourcing starter toolkit , you need to add the following maven dependency: Maven dependency.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Documentation inherited from OrderState
- The execution flow
- Waits for a signed order
- Create an execution flow for a specific state
- Checks if the cache is already created
- Construct binary query entity object
- Extract an entry from the journal
- Deserializes an OrderCmd from a byte array
- Start event streamer
- Start the streamer flow
- Handle http media type not supported
- Buffers records into the sink
- Compares two StreamReport objects
- Serializes an Object to byte array
- Handle ConstraintViolationException
- Handle HttpMessageNotReadableException
- Put records into cache
- Command flow
- Create actor system
- Handle a method argument not validated
- Starts the filter listeners
- Initialize a StreamSingleTupleExtractor
- Initialize the event tags map
- Produce the bean
- Poll event queue
- Handle exception type mismatch
spring-boot-akka-event-sourcing-starter Key Features
spring-boot-akka-event-sourcing-starter Examples and Code Snippets
Community Discussions
Trending Discussions on spring-boot-akka-event-sourcing-starter
QUESTION
I am building Akka persistence plugin with Apache ignite , I have a question when it comes to event tagging , if i disable java serialization(allow-java-serialization = no) , Tagged type failed to be serialized properly as i am using Protobuf for events , is there a way to configure specific serialization for Event Tagged wrapper or it need to be handled in the plugin itself? The GitHub for my plugin : https://github.com/Romeh/akka-persistance-ignite
The exception I get is :
[2018-11-21 21:20:48] [orderManagerSystem-akka.actor.default-dispatcher-27] ERROR a.p.i.journal.IgniteWriteJournal - Attempted to serialize message using Java serialization while akka.actor.allow-java-serialization
was disabled. Check WARNING logs for more details.
akka.serialization.DisabledJavaSerializer$JavaSerializationException: Attempted to serialize message using Java serialization while akka.actor.allow-java-serialization
was disabled. Check WARNING logs for more details.
[2018-11-21 21:20:48] [orderManagerSystem-akka.actor.default-dispatcher-11] WARN a.s.DisabledJavaSerializer - Outgoing message attempted to use Java Serialization even though akka.actor.allow-java-serialization = off
was set! Message type was: [class akka.persistence.journal.Tagged]
I have a sample application where this issue is happening for me where I use Protobuf for events serialization , do I need to do the same for event Tagged type ?
GitHub URL example code : https://github.com/Romeh/spring-boot-akka-event-sourcing-starter/tree/master/spring-event-sourcing-example
In Apache ignite , it is binary serialization .
Thx a lot for your help!
...ANSWER
Answered 2018-Nov-29 at 14:31Actually the issue got fixed by checking the msg type if it is Tagged event or not before doing the actual event storing in the journal , something like :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-boot-akka-event-sourcing-starter
You can use spring-boot-akka-event-sourcing-starter like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-boot-akka-event-sourcing-starter component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page