Click here to Skip to main content
15,889,383 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is Microsoft Navision dead? Pin
Emre Ataseven19-May-14 19:32
professionalEmre Ataseven19-May-14 19:32 
QuestionC# Pin
Member 1060638219-May-14 0:11
Member 1060638219-May-14 0:11 
AnswerRe: C# Pin
Simon_Whale19-May-14 0:27
Simon_Whale19-May-14 0:27 
AnswerRe: C# Pin
Praneet Nadkar19-May-14 1:14
Praneet Nadkar19-May-14 1:14 
SuggestionRe: C# Pin
V.19-May-14 2:48
professionalV.19-May-14 2:48 
Questionhow Insert Image and Text in word Document in text box using c#? Pin
Member 1078639318-May-14 8:44
Member 1078639318-May-14 8:44 
AnswerRe: how Insert Image and Text in word Document in text box using c#? Pin
Dave Kreskowiak18-May-14 11:10
mveDave Kreskowiak18-May-14 11:10 
QuestionSocket Server Pin
Vipin1517-May-14 22:13
Vipin1517-May-14 22:13 
Hi,
I need to write a High Performance TCP/IP server for receiving the data from the GPS devices and logging it to the database for display on Google Maps. There will be thousands of GPS devices connected to the GPS server and will be transmitting the data every 30 seconds and the display will be set to refresh typically every minute. I am looking for the help in specific areas, I will write the code myself and believe me I will post the complete developed and tested code on this same forum. I understand the following challenges
1.Concurrent TCP/IP connections
2.Database table bottlenecks

I would like to go for one table per device groups and different ports for devices with different protocols. I am assuming that I will need to write the following components.
1.Data Receiver
2.Parser as per the protocol and the commands
3.Data Cache
4.Database writer

Receive the bytes, log the received commands to the cache, implement the lazy writer to flush the data every minute to the database using different thread. Please comments on the following.
1.Does the GPS device disconnects after sending one command or it keep the connection to send the data further like long polling?
2.Is it better idea to maintain the thread pool and keep one thread per device? How many devices can be connected simultaneously to one port?
3.If I assume that device does not disconnect the client after transmitting the bytes to the server, should I keep the channel alive on the server to keep on reading the data every 20 seconds or whenever available?
4.Is it fair enough to have the separate threads for updating the data to the database server? Say data retrieval every 20 seconds and making it persistent to the database every one minute?
5.Is there any other better protocol rather that raw TCP/IP? I guess the other protocols like http etc should be slower as the header size itself is very big.
6.What is better choice Synchronous or Asynchronous sockets? Is it feasible to use UDP?
7.What is better choice? C# and SQL Server or JAVA and mySQL on Linux?

Many Thanks
Vipin
SuggestionRe: Socket Server Pin
Richard MacCutchan18-May-14 2:09
mveRichard MacCutchan18-May-14 2:09 
AnswerRe: Socket Server Pin
Matty2218-May-14 18:00
Matty2218-May-14 18:00 
GeneralRe: Socket Server Pin
Vipin1518-May-14 18:44
Vipin1518-May-14 18:44 
GeneralRe: Socket Server Pin
Matty2218-May-14 20:09
Matty2218-May-14 20:09 
GeneralRe: Socket Server Pin
Matty2218-May-14 20:11
Matty2218-May-14 20:11 
GeneralRe: Socket Server Pin
Matty2218-May-14 20:17
Matty2218-May-14 20:17 
GeneralRe: Socket Server Pin
Vipin1521-May-14 18:21
Vipin1521-May-14 18:21 
GeneralRe: Socket Server Pin
Matty2221-May-14 18:41
Matty2221-May-14 18:41 
AnswerRe: Socket Server Pin
Bernhard Hiller18-May-14 21:59
Bernhard Hiller18-May-14 21:59 
GeneralRe: Socket Server Pin
Vipin1521-May-14 18:17
Vipin1521-May-14 18:17 
AnswerRe: Socket Server Pin
Rob Philpott19-May-14 4:26
Rob Philpott19-May-14 4:26 
Questionhow to make slave monitor show something same as primary monitor? Pin
Tom-kit17-May-14 19:18
Tom-kit17-May-14 19:18 
AnswerRe: how to make slave monitor show something same as primary monitor? Pin
OriginalGriff17-May-14 19:40
mveOriginalGriff17-May-14 19:40 
GeneralRe: how to make slave monitor show something same as primary monitor? Pin
Tom-kit17-May-14 20:47
Tom-kit17-May-14 20:47 
AnswerRe: how to make slave monitor show something same as primary monitor? Pin
Alan N18-May-14 3:30
Alan N18-May-14 3:30 
QuestionC# Pin
Member 1060638217-May-14 12:44
Member 1060638217-May-14 12:44 
AnswerRe: C# Pin
Richard Andrew x6417-May-14 14:14
professionalRichard Andrew x6417-May-14 14:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.