c# - Azure Architecture for Casino type game -
i'm creating casino type game allows users bet on event, , plan use microsoft azure back-end processing , data storage (table storage). i'm looking ideas on how validate information , notify users of updated.
the idea: application allows users place bets on event, e.g. online bookies (paddypower, ladbrokes etc).
the workflow:
- the user places bet on event
- after event finished bet settled , user notified of winnings
- goto step 1
the scenario (simplified):
- a user shouldn't able place bet after event has started
- a user should notified of problems , winnings
the process:
solution 1 - using queues: when bet placed user, message put queue(used users) , processed worker role.
if happens placed bet late event, or player wins bet, need notified of result.
so each active user has it's own queue client application polls updates. allow client application pick notifications , display them user.
solution 2 - using wcf & queues: when bet placed user, connect wcf service , event start check, , notified of problems.
the way notification user use queue method in solution 1.
note:
- the above scenario simplified version of game, mechanics same, i'm looking architecture ideas
- i'm not going use notification services because plan application on both mobile , facebook , want have same experience across devices
- i'm using table storage , not using sql azure
- i'm open using service bus if makes more sense
so of solutions ideal, or there better solution?
i doing identical you. after careful consideration, have gone following:
sql azure / ef models. easier work , scalable service bus queues. vm console app worker role. whilst move worker or web jobs this, can monitor , deploy using console app on vm , using task scheduler.
when have right , possible exceptions etc gone, move either scalable worker role, or web jobs.
Comments
Post a Comment