Skip to content

Realtime API #1508

Closed
Closed
@ishitatsuyuki

Description

@ishitatsuyuki

There are some known services (mainly docs.rs) that continuously watch updates on crates.io to trigger jobs (doc build, dependency update PR, etc).

This will probably need a way for baseline fetch as well, which could be achieved with a database dump (#630).

The requirements for the APIs are:

  • Streams (probably WebSocket) of changes, including relations (document-based NoSQL excels at this)
  • A window of backlog of changes (to allow consistency when a short disconnect happens)

Some ways to implement reactiveness are:

  • Use a database that is designed for direct sync (bypasses backend) (CouchDB)
  • Use a database that is capable of realtime watches (MongoDB, RethinkDB)
  • Roll our own implementation based on some PubSub and filtering based on timestamp datas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions