Welcome Guest Search | Active Topics | Members | Log In | Register

Help in my problem (Tracking vehicle system) Options
Anna
Posted: Thursday, April 02, 2009 9:46:14 PM
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!
admin
Posted: Sunday, April 05, 2009 8:12:04 AM
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.

skipoleposition
Posted: Saturday, April 18, 2009 6:05:14 AM
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!
bnini
Posted: Monday, November 16, 2009 6:25:24 AM
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

admin
Posted: Monday, November 16, 2009 9:24:33 AM
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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.092 seconds.
12 queries (0.024 seconds, 26.09%).

yaf_pageload: 0.005
yaf_topic_info: 0.001
yaf_forum_list: 0.001
yaf_forum_listpath: 0.001
yaf_forum_listpath: 0.001
yaf_post_list: 0.009
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.001
yaf_active_listtopic: 0.001