From d8d0bff0df84f5baa6bd00c7e981a2dba2ef663d Mon Sep 17 00:00:00 2001 From: Corentin LEMAIRE Date: Sat, 2 Nov 2024 19:52:41 +0100 Subject: [PATCH] Updated README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0c4360a..467b06c 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Once a user is registered to a course, he's automatically subscribed to courses ## Limitations -### Sessions +### Sessions This app works with sessions. You have to play with this project with 2 browsers to test the pub/sub. @@ -94,7 +94,7 @@ Expiration of the course: The course expires after 5 minutes. If a student regis --- -### Students management +### Students management As a teacher, you can't manage students registered to your course. @@ -112,6 +112,8 @@ Sometimes, I really don't know why, some message published does not appear at al However, you can see my pub/sub system is well implemented by listening to all channels into redis-cli with `PSUBSCRIBE *`. It concerns my Django implementation. Sorry for this problem, but if you see the solution, please tell me. +Finally, one evening, I tested the pub/sub and got a lot of weird errors like Invalid Protocol b'8. The following day, I tested again and couldn't get these errors back. So I assume these errors are "fixed", but if you encounter these errors, like weird errors when pub/sub, try again later, with new accounts, I totally don't understand what's going on when these problems occurs. + ## Bugs If you see any bugs, please tell me. I really tried my best by testing every feature every time at every change, but I can miss some tricky things. So please, feel free to mail me at corentin.lemaire@etu.uca.fr to report any bug! @@ -120,7 +122,7 @@ If you see any bugs, please tell me. I really tried my best by testing every fea I'm using django model a little in my code only to create me some "barriers". this standardize my objects from redis to avoid lot's of bugs. This is only kinda sort of structure to format my data. -## Pub/Sub +## Pub/Sub To implement the Redis pub/sub in Django, I decided to use this mechanism: