title: Implementing observer pattern with C# MVC
body: <p>Simple concept. This is for a homework assignment, we are asked to use ASP.NET to make an application using a database. I am planning to make a TTT (tick-tac-toe) webpage where users can create games, join each other games, and have their W/L records saved in a database. This will be using MVC.</p>
  
  <p>I've worked with MVC before and am comfortable building the application up. The question I have is implementing the <strong>Observer pattern</strong> in this so each user has a most-recent copy of the game on their screen (view). </p>
  
  <p>I'm currently researching ways on how to approach this. I can always make a Javascript function on the view that requests the most recent copy of the game from the server every x seconds, such that both players always have an updated copy of the game. This would in fact solve the problem, but not correctly implement the Observer pattern. What would be ideal if the views subscribed to the model, if the model ever changed (through a controller action), the model could send an update through the controller to the views. This second approach sounds a bit wishy-washy and I'm reluctant to try it unless its the right way of going about implementing the Observer pattern. </p>
  
  <p>What IS the correct approach to implement the Observer pattern? If you've used it before, how did you do it? </p>