Git Product home page Git Product logo

failoverqueue's Introduction

About

This project provides a thread-safe queue-like container that has the ability to spill queue content into failover files for later reprocessing. This allows the queues to be fixed in size (queue length) and periodically write overflow items into files that can be read back and inserted into the queue when the queue has fewer items.

Version

failoverqueue-v0.2.0

Usage

The FailoverQueue container is a single header file that can be included into existing source files.

Dependancies

The following libraries are used by this project:

  • boost::thread
  • boost::serialization
  • boost::system
  • boost::filesystem

Testing

Contained within the tests directory are a number of unit tests that stress basic and complex functionality as well as several edge cases.

  • 01_basic: Verify functionality with basic objects
  • 02_complex: Verify functionality with complex objects
  • 03_uneven: Test ability to read failover files on object construction and dequeue items properly
  • 04_even: Test edge case whereby failover files represent an empty queue but dequeuing must take place
  • 05_order: Verify the ability to load failover files in the order in which they were created
  • 06_missing: Verify that missing bug expected failover files are skipped gracefully.

Credits

Nick Gerakines [email protected]

License

Copyright (c) 2010-2011 Blizzard Entertainment

Open sourced under the MIT license. See the included LICENSE file for more information.

failoverqueue's People

Contributors

ngerakines 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.