Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Should we use a database? #59
Want some opinion's on using a database. Some discussion has already taken place in issues #34, #31 and #53. Lots of great possible solutions have been purposed, so lets talk about them here before we choose.
I narrowed it down to three possible solutions, each with their own option's. If you have any other options I am open to any suggestions as well.
IMO it depends on the project goal. Is it meant to be truly anonymous? If so, local storage is the way to go. If we want to use a database, there's also the cost overhead of running a db. What do we want to achieve by introducing a db (other than storing profile pictures)?
Yes @dnguneratne, we need to work on the project goal.
I can't think of many use case's for a 100% off the record anonymous chat. I am leaning towards having the off the record anonymous chat as more of an option, for the chat system.
And to clarify some of the database's possible uses:(allot of which we don't currently have)
A possible plan
I think we need to be slightly different then the existing chat application's out their, so I don't want to complete abandon the off the record chat idea. Thinking of possible applications for the app, I find a off the record chat a bit limiting. Here is a possible plan for the app that would still implement the off the record functionality but more as an option. This is just a idea not something set in stone.
There is a default channel that you are put inside when you start the app.
You would also have the option to login, which would make's you known and no longer anonymous in the default channel. When logged in you can continue talking in the default channel, or you can move to a private channels or create a private channel. The private channels could be configured as off the record or on the record. They could also be configured to be anonymous.
Let me know your thoughts.