Forward Data, to many Connections and best Practise?

Sascha 9 months ago

Hello,

I use Traccar Server version 5.12 with a MYSQL database in the background. I would like to use the data from the server to forward it to other applications.

Now I have two options.

1- Via forward in the traccar.xml

<!-- begin forward -->
  <entry key='forward.enable'>true</entry>
  <entry key='forward.type'>json</entry>
  <entry key='forward.url'>http://192.168.10.70:8080</entry>
<!-- end forward -->

2- Via websocket connection.

When I use the forwarder, the Traccar server establishes a lot of connections to my TCP server, which receives the data. Is this normal or am I doing something wrong and what is the best way to permanently forward all data as quickly as possible?

Many thanks for the help.

Anton Tananaev9 months ago

Probably normal if you have many devices.

Forwarding is the right way to do it.

Sascha 9 months ago

Only a smartphone is connected to the Traccar app as a device. The app sends a position every second. And the Traccar forwarder opens a connection for almost every forwarded position.