Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-4480

Binary protocol: adds events push

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 1
    • None
    • None

    Description

      Clients needs to know about a number of cluster changes (new/removed nodes typically) to function properly. With the binary protocol we could start pushing such events to the clients directly.

      The basic idea would be that a client would register to a number of events and would then receive notifications when those happened. I could at least the following events be useful to clients:

      • Addition and removal of nodes
      • Schema changes (otherwise clients would have to pull schema all the time to know that say a new column has been added)
      • node up/dow events (down events might not be too useful, but up events could be helpful).

      The main problem I can see with that is that we want to make it clear that clients are supposed to register for events on only one or two of their connections (total, not per-host), otherwise it'll be just flooding. One solution to make it much more unlikely that this happen could be to distinguish two kinds of connections: Data and Control (could just a simple flag with the startup message for instance). Data connections would not allow registering to events and Control ones would allow it but wouldn't allow queries. I.e. clients would have to dedicate a connection to those events, but that's likely the only sane way to do it anyway.

      Attachments

        1. 4480.txt
          46 kB
          Sylvain Lebresne
        2. 4480-v2.txt
          40 kB
          Sylvain Lebresne

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            paul cannon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: