Comparison between nacos and apollo

nacos

architecture

  • client -> server <- admin。
  • Server-side persistence can be simplified to a built-in Derby memory database.

configuration update

  • HTTP pulls configuration from server long polling . The request is delayed and blocked in the server queue.
  • The server task scans the key update, writes the changed configuration into the response object, and returns the result.
  • Check the configuration after 29.5 seconds of no change blocking (client timeout 30 seconds), write the result of the check into the response object, and return the result.
  • The client checks the configured md5 , and calls the listener to notify the change event if it is inconsistent.

concept

  • Nacos configuration level and project correspondence:

apollo

architecture

configuration update

  • The server regularly scans and updates the configuration
    200915.apollo.server.png
    • ReleaseMessage implementation method:
      1. The admin server writes the mysql table.
      2. The task of the config server scans the update records.
  • Client cache configuration (memory + files).
    200915.apollo.client.png
    • Push implementation method: same as nacos http long polling .

Compared

apollo nacos
push method HTTP long polling HTTP long polling
client storage memory+file memory+file
minimal deployment config+admin+portal+mysql sever+ embedded db or mysql
authority management complex Simple

reference

Guess you like

Origin blog.csdn.net/qq_40369829/article/details/108945326