Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Event Sourcing with Kafka

  1. #1
    Junior Member
    Join Date
    Oct 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Event Sourcing with Kafka

    Hi,

    I am asked to write a Event Sourcing Library, that can be used by any Java application/API to produce custom events. These events will be described in a JSON file which will be available to all consuming java applications to lookup and send events (JSON preferred to fit on-going changes).

    Basic outline for the JSON will be as follows:

    {
    event1:[eventType, name, des]
    }

    Any producing application should be able to produce events in a very simple way:

    import com.myEventsLibrary.EventProducer
     
    my sampleClass{
     
    public static void main(String[] args){
    String config = "config.json";
    EventProducer myEvent = new EventProducer(config);
    String msg = args[0];
    myEvent.send(msg);
    }
    }

    the consuming library should write these events to a Kafka topic. I need some basic starter for how to receive the myEvent.send(msg) and write it to Kafka topic (which I have some knowledge about).

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    277
    My Mood
    Amused
    Thanks
    8
    Thanked 19 Times in 19 Posts

    Default Re: Event Sourcing with Kafka

    You want to receive json in sampleClass ?
    Whatever you are, be a good one

Similar Threads

  1. Event handling
    By noobjava in forum AWT / Java Swing
    Replies: 3
    Last Post: May 20th, 2014, 06:28 PM
  2. event does not occur
    By sukanya in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 8th, 2012, 11:43 PM
  3. Event Issues
    By fractalorbit in forum AWT / Java Swing
    Replies: 3
    Last Post: September 2nd, 2011, 07:49 PM
  4. [SOLVED] jTable event help
    By banny7 in forum AWT / Java Swing
    Replies: 12
    Last Post: August 1st, 2011, 07:42 AM
  5. Event handling
    By subhvi in forum AWT / Java Swing
    Replies: 3
    Last Post: August 26th, 2009, 11:20 AM

Tags for this Thread