GithubHelp home page GithubHelp logo

lambdaclass / reconnections Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 0.0 801 KB

We were tired of implementing a reconnection system for our database clients so we created this

License: MIT License

Makefile 2.81% Erlang 97.19%
erlang reconnect database services

reconnections's People

Contributors

euen avatar facundoolano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

reconnections's Issues

Add test for each driver

The tests will work against services running in docker.

  • There needs to be a way (perhaps calling os:cmd) to interface with the running docker to tell it to kill a service.
  • There needs to be a way to ask docker or the os whether a service is running
  • There needs to be some process randomly killing (and resurrecting) services during the test run
  • The test should constantly try to use the service.
  • when the service call fails check that both the OS and the driver report the service as being disconnected
  • after a disconnection, test that the driver attempts reconnection according to the configured backoff, that reconnection succeeds and that service calls work again.

Add docker command

docker run --rm -it -v (pwd):/reconnections -v ~/.cache:/root/.cache -w /reconnections erlang rebar3 as test shell

General styles

  • Enter before same functions with different parameters
  • No ASCII separators
  • Rename server/ to drivers/
  • Use Maps instead of touples in supervisor

List of services to support

  • epgsql
  • eredis
  • cqerl
  • riak erlang client
  • emysql
  • rabbitMq
  • brod
  • MongoDB Erlang
  • neo4j
  • sql lite
  • Amazon DynamoDB
  • CouchDB

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.