LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best and safest way to share data between a Server and a Client app?

Solved!
Go to solution

Hi,

 

I'm trying to communicate a Server-Client application.

Actually, I've already made a simple data transfer through TCP/IP. However, I'm not sure yet, if TCP/IP is the best (and by best I mean fastest, safest, etc)

way to do it.


What are the Cons and Pros between TCP/IP, STM and Shared Variable?

Do you recommend another type of communication besides these 3?

 

Thank you,

Matt.

0 Kudos
Message 1 of 3
(2,264 Views)
Solution
Accepted by topic author Matrod

I think a general question cannot have a specific answer.

So, "the best" way to share data between a client and a server app doesn't exist.

 

I like using TCP/IP, but sometimes (when data loss is not critical) I use UPD (quick and dirty).

I usually avoid shared variables, especially on embedded devices.

Some other times I I prefer exchange data through a database...

Some other times I exchange data using files...

 

Marco

 

 

 

Message 2 of 3
(2,250 Views)

I see,

 

'I like using TCP/IP, but sometimes (when data loss is not critical) I use UPD (quick and dirty).
I usually avoid shared variables, especially on embedded devices."

 

These are the type of information that I was looking for.
There's no book that could tell you these "learned-by-experience" informations.

 

Thank you Marco, it was really helpful.
Matt.

0 Kudos
Message 3 of 3
(2,243 Views)