search

Home  >  Q&A  >  body text

java - How to implement: when entering a list page, different products are displayed every time? Details enter

For example, a mall has 10 merchants, and each merchant has many products. The demand is: every time the user refreshes the page, he will see different products from different merchants. It is not as simple as a random number of product IDs, because it may be repeated. How to implement it specifically

仅有的幸福仅有的幸福2744 days ago547

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-17 10:10:10

    If it is an in-memory database (which may be used by large shopping websites), you can use caching.

    If not, it is recommended to implement it on the front-end page. The background is responsible for retrieving data.

    reply
    0
  • Cancelreply