Giter VIP home page Giter VIP logo

communik's Introduction

CommuniK (pronounced as communique)- reactive api for sending emails/SMS/chat notifications

Build Status Maintainability Test Coverage

It's a Store And Forward API built with Springboot/Webflux and MongoDb to send out notifications.

Features:

* Fully reactive
* Centralizes your notification requirements
* Send emails/sms/chats by calling a rest endpoint
* Add your own Email/SMS providers by implementing the Notifier Interface
* Configure blackouts - WIP
* Send bulk notifications 
* Can store the notifications to a DB (mongodb/cassandra) before sending it
* Register a notification template and pass dynamic data to it via Freemarker
* Locale aware
* Generate and send pdf attachments(via FlyingSaucer/Openpdf) 
* Generate and send html attachments (via Freemarker) 
* Download from a url and send attachments 
* Retry the failed notifications via multiple fallback providers
* Call webhooks on any failure/success (WIP)
* Audit the notifications.
* Easily extendable, so one can change any part of the system as required
* OpenTracing (Jaegar) integrated
* Prometheus metrics (WIP)
* SendMail/Mailgun for emails 
* Twilio (WIP)

Why Communik?

I can easily send all my notifications via Sendgrid/Mailgun, why do I need Communik? Well some reasons:

* Take control of your templates. For example, if I need to move to sendgrid from mailgun, I don't need to transfer the templates
* If I need to retry with a different provider, I dont need to worry about replicating the templates
* One API for all your notification needs across your systems. 

Getting Started

Run the springboot application Communik

Optional

If you want to store the messages, a mongoDb cluster or cassandra is required


Running

Go to the root of the project directory build and test the projects

$ ./gradlew 

To run the communik application

$ ./gradlew run

Running the tests

$ ./gradlew test

Deployment

TODO docker

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

Benchmarking

Application Config

  1. dummyEmailer running in 200ms delay
  2. Log in INFO mode
  3. Heap size -xmx2G -xms2G

Running

  1. Use siege - details in seige/howto.txt
  2. JConsole to view threads and Heap
  3. Run with 20 concurrent requests and repeat 10 times

Results:

1. Transactions - 200
2. Elapsed Time - 17.2 secs
3. (Avg) Response Time - 1.63 secs  (Lower the better)
4. Transaction Rate - 11.61 tps (Higher the better)
5. Threads - 31 (Should be always 31)
6. Heap - 250 MB

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.