[Moving Brick-2] Cache those things

  • Local cache (ehcache, GuavaCache, Caffeine)
    • advantage:
    1. No network I/O overhead
    2. Fast memory read speed
    • Disadvantages:
    1. Limited memory and limited data storage
  • Distributed cache (redis, memcached)
    • advantage:
    1. Can expand infinitely
    2. Support multi-node use
    • Disadvantages:
    1. The delay caused by network I/O cannot be ignored

Guess you like

Origin blog.csdn.net/u010659877/article/details/105318767