gabrielhora / elementar Goto Github PK
View Code? Open in Web Editor NEWVery simple distributed background job executor based on Redis and the Redisson library.
Very simple distributed background job executor based on Redis and the Redisson library.
Elementar ========= Very simple distributed background job executor based on Redis and the Redisson library. --- Add to your project: <!-- add the repository --> <repositories> <repository> <id>elementar-mvn-repo</id> <url>https://raw.github.com/gabrielhora/elementar/mvn-repo/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> <!-- add the dependency --> <dependency> <groupId>gsch</groupId> <artifactId>elementar</artifactId> <version>0.1.1</version> </dependency> The worker jar can be downloaded from https://raw.github.com/gabrielhora/elementar/mvn-repo/gsch/elementar/0.1.1/elementar-0.1.1-jar-with-dependencies.jar --- Define your jobs: class MyJob extends Job { public void run() { // do something here } } // create a new task manager and enqueue the job TaskManager taskManager = new TaskManager("localhost", 6379); taskManager.enqueue(new MyJob()); Start the worker: You will need the elementar jar file and the your project's jar file (I recomend using a fat jar so you don't have to specify a huge classpath in the command line). You can scale out to as many workers as you want. $ java -cp \ jar-with-your-jobs-and-dependencies.jar:elementar.jar \ -Dredis_host=localhost \ # optional -Dredis_port=6379 \ # optional -Dinterval=1000 \ # optional -Dthreads=50 \ # optional gsch.Worker
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.