Creating Group chat with .Net and MongoDB

Jay Modi 6 Reputation points
2022-03-04T10:19:57.167+00:00

Hi, so I'm new to the .Net framework and a beginner level dev. I've been assigned a task for making a group chat application using .Net and Mongodb as the database. So far I know how to process the basic CRUD operation using ASP and mongo. So 1 possibility I thought I could do was send the users message and store it in the database table following a model like message, user_id, group_id and timestamp.

But with this a few problems arise in my head which are: This isn't happening in real time, so user has to refresh everytime a new message is sent and another thing is that this doesn't really seem database efficient having each message being stored in a single table, which isn't really a big issue since it is just an assignment but I'm open to suggestions.

So can anyone tell me atleast how I can start creating an application like this since I'm pretty lost right now and if my method of doing things is correct here.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,307 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AgaveJoe 26,166 Reputation points
    2022-03-04T11:30:51.183+00:00

    Checkout the SignalR documentation which has a chat demo.

    Introduction to SignalR

    0 comments No comments