|
|
Rank: Newbie Groups: Member
Joined: 4/2/2009 Posts: 1 Points: 3 Location: Usa
|
Hello... I´d like to know if XF.Server is a good choice to my problem...
My problem: My client has several personal devices (blackbox with gps) to locate people/car... There are about 12000 people/car using that device... It sends their location to specified IP/Port (via TCP) ... I can´t do anything on that side...
My job? Devolope a listener to catch all sended data by devices and load that in database using .NET...
My idea: A Window Service using threads (maybe ThreadPool?). So the service will catch all incoming messages, create a thread and put into DB... Maybe XF.Server here?
Is that the best solution for the problem? I was reading here about Message Queue (MSMQ)... Do you think should I use that?
Anna!
|
|
Rank: Administration Groups: Administration
Joined: 2/15/2008 Posts: 130 Points: 835
|
That’s a good decision to create a windows service, but you should not create additional threads to put data into DB. Consider using asynchronous operations with database.
|
|
Rank: Member Groups: Member
Joined: 4/18/2009 Posts: 3 Points: 9 Location: London
|
Hello Anna, I would like to know how you got on with using XF Server for your vehicle tracking product. I've got a client that wants to do a similar thing but I'm a bit concerned about some performance issues that were posted a few weeks back concerning sockets closing connections etc. Regards, skiPolePosition Anna wrote:Hello... I´d like to know if XF.Server is a good choice to my problem...
My problem: My client has several personal devices (blackbox with gps) to locate people/car... There are about 12000 people/car using that device... It sends their location to specified IP/Port (via TCP) ... I can´t do anything on that side...
My job? Devolope a listener to catch all sended data by devices and load that in database using .NET...
My idea: A Window Service using threads (maybe ThreadPool?). So the service will catch all incoming messages, create a thread and put into DB... Maybe XF.Server here?
Is that the best solution for the problem? I was reading here about Message Queue (MSMQ)... Do you think should I use that?
Anna!
|
|
Rank: Member Groups: Member
Joined: 11/16/2009 Posts: 3 Points: 9 Location: Portugal-Lisbon
|
Hello to All.
Anna, I have the same task to develop. I am currently developing the exact same thing.
Until now I have used the following:
- Implement .net sockets with threads direct to DB - Implement .net sockets with async process direct to DB - Implement .net sockets with threads direct to MSMQ - Implement .net sockets with async process direct to MSMQ - Diferent number of components, including PowerTCP and SocketWRENCH...
I have the task to receive messages (210 bytes) from 600 vehicles in a 5 to 10 seconds delay. All of this components had the same problem: too many message lost. The socket simply stops working for 1 or 2 seconds when it is receiving too many messages.
Last Saturday I came accross XF.Server from a CodeProject.com project. Well I tested it and i got 3.500.000 messages in two days without packet loss... I am really happy with this results. Congratiolations to the developers of this great component!!
I am now doing the:
- XF.Server listening on port XXXX and send the message back to MSMQ for offline processing.
My only problem: How to check for socket/server erros? How to check if there are some warnings/errors on the connection part?
Best Regards,
BNINI
|
|
Rank: Administration Groups: Administration
Joined: 2/15/2008 Posts: 130 Points: 835
|
Hi Bnini,
Do you use the latest release? If not, please download it from our site. All async methods return error code in case of failure.
Regards, Arthur
|
|
|
Guest |