Giter Club home page Giter Club logo

taskschedulerservice's Introduction

TaskSchedulerService

An approach to designing a distributed task Scheduler service. We can schedule tasks with timestamps. The task can be anything like sending an email, text, hitting a third party API or as simplistic as printing a message on the terminal.

The service works on plug n' play architecture and is written keeping in mind to be able to scale horizontally in case of large number of requests.

Prerequisites

Redis

$./redis-cli
127.0.0.1:6379>

MySQL

 $./mysql -uroot -p123

RabbitMQ

http://localhost:15672

Starting the service

mvn spring-boot:run

Scheduling Tasks

curl --location --request POST 'localhost:8080/tasks/submit' \
--data-raw '{
	"message":"drredecff",
	"timestamp":"2020-03-10T00:42:30"
}'

Tracking Progress

curl --location --request GET 'localhost:8080/tasks/{id}' \
--header 'Content-Type: application/json'

Tools

Spring Boot 2.2.5.RELEASE

JDK 1.8

Apache Maven 3.6.3

Lombok 1.18.10

Spring AMQP 2.2.5.RELEASE

Hibernate 5.14.12

Spring Data Redis 2.2.5.RELEASE

taskschedulerservice's People

Contributors

xero812 avatar

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.