bnjbvr / hermes

A messenger for your cozy.
MIT License
0 stars 1 forks source link

Proof of concept socket 1:1 messaging #2

Open bnjbvr opened 9 years ago

bnjbvr commented 9 years ago

So the only issue I can think of is about the way to save messages in the database:

  1. have one entry per channel (a channel <=> a unique URL, with 1:n people in the channel), containing the entire chat log (nicks, timestamps, messages).
  2. have one entry per message. Drawback: that means saving a lot of information into the DB, maybe DDOSing it if there are a lot of people in a channel. Benefit: it allows complex querying on the server side.

I'm all in for 1), but implementation seems more complex. What do you think @Aldream ?

benjaminplanche commented 9 years ago

I'd say, let's go for 1, as a first shot. The way I see it, object-oriented speaking:

hermes

Basically:

Pretty basic stuff overall, but this could be our PoC... Your opinion?