/mektup

Eventbus Framework for SpringBoot Microservice Applications

Primary LanguageJava

mektup

This project is a eventbus for Java Spring RESTFul services

Getting Started 😎

Usage 🚀

@SpringBootApplication
@MektupScan("com.mektup.test")
public class TesterApplication {

	public static void main(String[] args) throws MektupException {
		ApplicationContext context = SpringApplication.run(TesterApplication.class, args);
		MektupApplication.run(TesterApplication.class, context);
	}

}

Super Simple 🏁

Publisher

try {
    EventCreator.create(001L, "{ \"id\": 1, \"name\":\"Guven\" }".getBytes());
} catch (EventException e) {
    //
}

Subscriber

@EventSubscriberService(eventId = 001L, queue = "TEST")
@EventRequestMapping(value = "/home2")
public String home2(Deneme deneme){
    System.out.println("deneme2");
    return "deneme2";
}

Contributing

  1. Fork it ( https://github.com/guvencenanguvenal/mektup/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors