First steps of design

    Hello.

    I am taking the first steps in the design. Today I drew a trace chart The main idea lies in the division of Read / Write in the database. The reading class randomly selects the SLAVE Server and connects there for reading. The Write class works directly with the master server. The base class DB uses caching for queries. (I already realized that caching needs to be done in read) The READ class also connects to a user who can only be SELECT. It is included in the client services factory and it turns out that even with script errors the attacker will not be able to write to the database. I see a plus here in that you can provide a class for working with the database to a remote programmer.















    In general, the first steps, do not kick hard, indicate the obvious disadvantages of this idea.
    Thank.

    Also popular now: