Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
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 
Interesting question.

Firstly, I think you need to be sure on how each GPS would connect. You suggest TCP, you need to get this confirmed and you need to find out whether it connects, delivers its information then disconnects (likely) or it leaves the connection open (unlikely).

How many GPS units are you talking about, how many thousand? If it's a thousand, and they update twice a minute you're only looking at 33 connections/second which I don't find in any way scary. From what I know about GPSs (which isn't a great deal) they normally send a very small packet just containing location information.

Then I'd implement a producer-consumer queue. Each incoming connection takes the data and just sticks it on the queue and disconnects. On the other end you have something (or more than one) which pulls these off the queue and writes them to the database.

I'd go for asynchronous constructs (BeginAccept, BeginReceive) on the reception end as these won't require a long running thread and scale well.
Regards,
Rob Philpott.

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 
AnswerRe: C# Pin
Pete O'Hanlon17-May-14 23:50
mvePete O'Hanlon17-May-14 23:50 
QuestionTrace IP Who is using my "Share Folder" from LAN Pin
UL UL ALBAB17-May-14 1:58
UL UL ALBAB17-May-14 1:58 
AnswerRe: Trace IP Who is using my "Share Folder" from LAN Pin
Dave Kreskowiak17-May-14 2:11
mveDave Kreskowiak17-May-14 2:11 
AnswerRe: Trace IP Who is using my "Share Folder" from LAN Pin
Pete O'Hanlon17-May-14 23:52
mvePete O'Hanlon17-May-14 23:52 
QuestionDisposing objects in argument list Pin
Member 1064727016-May-14 8:09
Member 1064727016-May-14 8:09 
AnswerRe: Disposing objects in argument list Pin
Eddy Vluggen16-May-14 8:57
professionalEddy Vluggen16-May-14 8:57 
AnswerRe: Disposing objects in argument list Pin
PIEBALDconsult16-May-14 18:26
mvePIEBALDconsult16-May-14 18:26 
QuestionAdd more detail on creating an XML file Pin
Member 1063699816-May-14 8:09
Member 1063699816-May-14 8:09 
AnswerRe: Add more detail on creating an XML file Pin
Eddy Vluggen16-May-14 9:00
professionalEddy Vluggen16-May-14 9:00 
AnswerRe: Add more detail on creating an XML file Pin
Senthilkumar C K20-May-14 15:17
Senthilkumar C K20-May-14 15:17 
QuestionWriting to Opened File Pin
RebornProgrammer16-May-14 5:00
RebornProgrammer16-May-14 5:00 

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.