开发者

ASP.NET Silverlight online trading simulation game implemenation

I am going to start a new online trading simulation game.

Server Page:

A game will be loaded with an xml which contains the instruments for this game and each instrument initial and changing factor price(which determines the price for the next interval ex: 1 min).

User Page:

After the game is loaded successfully, Users can launch a page where they can buy/sell instruments. During this buy/selling process, the profit/loss should be shown to user in real time. A dropdown will be populated with the instruments, when selected, should show a real time graph of the price.

Design:

I want to use ASP.NET and silverlight to develop this application where an ajax request will be sent in configurable time to the server to get the latest details about the instruments. Then based on the response, the client browser will be updated with the latest prices. The instrument graph also will be updated in the same way.

So, I would like to kno开发者_JAVA技巧w whether this is a right way of building this applicaiton.

Please give me your valuable suggestions.

Thanks, Mahesh


  • Use a database, not XML ;) Well, I do, but my application is no a game.
  • ASP.NET in process is bad for containing a simulated price system - you have little control over the life cycle, and two appdomains may run at the same time.

-> better start a service for hosting the market simulation. Here you can acutally make sure that you have ONE instance of your market running at the same time.

Besides that, things like fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜