Giter VIP home page Giter VIP logo

fmaze's People

Contributors

telendt avatar

Stargazers

 avatar

fmaze's Issues

Code more defensively

  • It's not really said, that user ID is an int (although it looks like that from the given examples). Should I accept string of any characters except of "|" (event field separator) instead?
  • What if an event with specific sequence number is missing? Should we move on? And if so, should this information be exposed somehow? (In that case user connection graph is potentially broken.)

Client authentication deadline

Clients should send their ID within some finite (preferably small) timeframe, otherwise their connection should be closed (since the protocol does not define a way of communicating problems back to the clients).

Provide alternative implementation of user graph as adjacency matrix

This would not make sense in the real world scenario (real world connection graphs are too sparse) but benchmarks (tester) would benefit from it (true, unamortized O(1) lookups).

Also, document why connection graph build by provided tester script is unrealistic and how this information can be used to game the benchmark.

Document, why backpressure by default does not make sense

...other that satisfying provided tester script.

Tester performs really dummy test (many edge cases are not covered) and benchmark test (measures maximum throughput). In the real system I would rather expect incoming events to come at some finite and almost fixed rate. Clients connections on the other hand are unreliable -- there might be some really slow readers (on purpose or not). Temporary client read slowness should be solved by with a help of message queues (buffered channel) but longer read stalls should not be back propagated to the event source. I would expect event source to emit events at the rate that real actions happen (follows, unfollows, PM sends, etc.). In that case slowing its send transmission rate does not make sense (How should it even be done otherwise? By disabling related action UI controls?)

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.