Is Redis Will Enhance the Traccar server performance

Amer_Hijazi4 hours ago

Dear Team,
Hope all are doing well,

I just did a quick search and found that traccar uses embedded cache (in-memory), and I can also run multiple instances together for balancing.
1- Is there any way to extract the cache and use Redis on a different server rather than in-memory?
2- If I use two different servers (instances) and connect devices using the load balancer, will the traccar handle this situation? The device may connect once to server A and another time to server B. Is it okay to do that (use a load balancer for the device push data)?

Thank you

Anton Tananaev3 hours ago
  1. No, but you can use Redis for sync.
  2. Yes, if you configure it correctly.
Amer_Hijazi3 hours ago

Dear Anton,

Could you kindly let me know use Redis for sync what?
And also what do you mean by configure it correctly? If there is a guide link please share it with me.

Appreciate your quick reply and support.

Anton Tananaev3 hours ago

We have this:

https://www.traccar.org/horizontal-scaling/

But it's a bit outdated because we also support Redis sync. Check configuration doc:

https://www.traccar.org/configuration-file/