Skip to content

pvsune/theschwartz-simple-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Queuing Spike App using TheSchwartz

This PERL App is created as an experiment in implementing a simple queuing service for PopSlide. It is still under-development; see TODOs below.

Set-up

  1. Clone this repository on your local dev environment.
  2. Install modules from CPAN.
  • cpanm TheSchwartz Config::FromHash
  • or if you use dependency management, add them in cpanfile
  1. Edit config.pl with your database credentials.
  2. Create database ts_db on your local mysql server with this schema

Usage

  1. Run the worker script - perl worker.pl
  2. Insert some jobs in the queue - perl insert-to-queue.pl
  3. You should see dummy texts displayed on the terminal.

TODOs

  1. Create test scripts.
  • Mass job insertion (sort of like stress test) to check if it will handle it efficiently.
  • Simulate failed job scenario if retry job is occuring.
  1. Implement logging mechanism for debugs, errors, success job scenarios.
  2. Daemonize the worker script and add parallel processing (looking at Parallel::ForkManager).

License

Copyright (C) Philamer V. Sune.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Simple Queuing Spike App using TheSchwartz

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages