Giter Site home page Giter Site logo

routemaster-client's People

Contributors

adamof avatar krisleech avatar marcusleemitchell avatar matthutchinson avatar mezis avatar nas avatar thejspr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

routemaster-client's Issues

Fix Faraday compatibility

Faraday 0.8.9 and 0.8.4 have incompatibilities. #9 is not acceptable (locks old Faraday version).

Make the client code work with both, use appraisal to test.

Add cache priming

When receiving an event, call the endpoint to get data, and cache the results (forever as the next event should bust the cache).

Use Faraday + caching for this.

Add dirty map management on the receiver side

Make this an optional feature.

Keep a mapping of the latest known state of all known entities.
In a contingency (lost events, full refresh) they can all be marked as dirty.

The dirty map should take timestamps into account, to honour out-of-order events being received.

This can be implemented as a replacement middleware (that doesn't need to take a block) and an extra class that lets users work form the dirty map directly (instead of being event-driven).

documented methods missing?

These methods in the README are not implimented yet:

client.monitor_topics
client.monitor_subscriptions

Maybe we can remove or add a "TODO" to the docs? (happy to submit a PR for either)

OpenSsl warning due to monkey patch

OpenSSL::SSL::VERIFY_PEER == OpenSSL::SSL::VERIFY_NONE
This dangerous monkey patch leaves you open to MITM attacks!
Try passing :verify_ssl => false instead.

Can we possibly get rid of routemaster/client/openssl.rb?

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.