Question By
Unsolved

Read cache VS Read json file performance

magarrent

Aug 5th, 2021 05:19 AM

Hey there, someone know which is the best option? (in Laravel or single PHP)

  • Read row from cache
  • Read row from json file
bobbyiliev

Aug 5th, 2021 06:26 AM

Hi there,

Not 100% sure for those two specifically, but I believe that you will have the best performance with Redis as the data would be stored in memory.

Here is a nice benchmark post:

https://www.peterbe.com/plog/redis-vs-postgres-blob-of-json

Report
1