Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve persistency #7

Closed
adonese opened this issue Sep 13, 2022 · 1 comment
Closed

How to achieve persistency #7

adonese opened this issue Sep 13, 2022 · 1 comment

Comments

@adonese
Copy link
Member

adonese commented Sep 13, 2022

We have the transport layer there, via websockets. It works and everything is fine as long as both of the clients are connected. However, let's check this diagram:

sequenceDiagram
    awab->>+abrar: both connected we use ws
    awab->>+abrar: (abrar is not connected)
    awab->abrar: (awab sends message and it goes rightaway to db)
    awab-->>db: awab's message goes to db
    abrar-->>awab: abrar enters the chat (http/sync)
    abrar-->>db: abrar retrieves all previous (is_delivered=false) messages from db
Loading

I think this one actually works quite very well for me.

@mseltahir
Copy link
Member

Looks good to me, I think the items we need to work on are:

  • Checking for client connectivity (does websocketConnections[clientID] exist?).
  • Routines for reading/writing to the database.
  • Creating an API as an abstraction layer for consumption by our mobile application.
  • Creating automated clients that can test all functionalities for us.

Anything else you think we should do?

@adonese adonese closed this as completed Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants