-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Overview of the feature request
When CRUDing on entities, it should send events in topics for given entities.
Maybe propose this by a prompt option?
This could be linked with #4 where consumer/producer would be created by hook when using jhipster entity Foo.
An event type could be send as a key when producing a message for instance:
byte[] key = "FOO_ENTITY_CREATION".getBytes();
byte[] value = "value".getBytes();
ProducerRecord<byte[],byte[]> record = new ProducerRecord<byte[],byte[]>("my-topic", key, value)
producer.send(record);
An enum could be generated with the different operations values (create, update, delete).
Motivation for or Use Case
Allowing the application to be event-driven.
Use case:
- Create a first JHipster application JH1 with a
Fooentity, create aFooProducer. - Create a first JHipster application JH2 with a
Fooentity, create aFooConsumer. - Create a
Fooin the application. - A creation event is send to the
queuing.application_name.footopic throughFooProducerin JH1. - The creation event is read in the
queuing.application_name.footopic byFooConsumerin JH2.
Add support for akhq to be launched on multiple apps.
Related issues or PR
- Checking this box is mandatory (this is just to show you read everything)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request