Sprint 22 – You Look Cute Today

Sprint 22 – You Look Cute Today

November 23rd, 2020

Good morning boys, girls and amorphous blobs. 

How are you? You look cute today.

I’m writing this at 4am, because apparently I can’t sleep, so bear with me. I think i’m considerably funnier than I am at the best of times – much less at 4am.

This sprint has gone really well, I’m really pleased with the progress especially after the previous few weeks.

All the changes I made to the client side architecture made a huge difference. Want to know more? then continue reading my friend! for we go on an adventure into my insanity!

Alpha Release 1.1.0

Firstly, welcome Jelle and Peter to the Alpha team! I’m going to start slowly adding more people to the test team now in the hope to maximise feedback and getting into building a process!

You can read more about what’s in this release here:

Bot emotions

During this sprint, I’ve been working with the designer to try and get a simple design to show off emotions with just eyes. Which was a lot harder than we thought and a lot of surprising answers as well as some great feedback

You can take part in the survey here https://www.surveymonkey.co.uk/r/3H5LJ3N

Thank you everyone for your comments, they’re always appreciated! (and shared them with the designer because she’s responsible for these designs)

Hot and Cold Message storage (Chat History)

I took this in a few phases this sprint, my goal was to make it so I would store messages and then retrieve them when i reload the app.

First stage was to do it with a basic local array, simple right?

1. Server receives message and sends it to cache function

2. Cache function stores it in a local array

3. App joins room

4. Server sends contents of array!

Obviously this fundamentally works but it’s not great if the server needs restarting, you lose all your room history! So next up, I wanted to use a memory cache.

Why a memory cache instead of a database?

When you’re building something like a chat service, messages can come in at a phenomenal rate, for example when we first launched SoSa the first 24 hours we saw 1 message every second in a single room!

Now imagine 4000 rooms, all very active.

I love relational databases as much as the next person but personally, I’d rather have control how much data is inserted and retrieved – creating an insert funnel allows me to scale things at a much lower cost and in a predictable way.

If we lose a profile or a DM – that’s a big deal, but if we lose a chat message, it’s not a huge deal.

—-

So I set about implementing Redis, and then a Cache service (so I could change the type of cache I use in the future and create a local in memory fall back) as you can see the implementation isn’t much different!

But shoot, I still want other nodes to be able to access the chat history and what happens if the chat instance goes offline – I don’t want to lose my data do I?

So I implemented the concept of cold / hot storage into my ORM implementation. 

What this means is that every time I send a new message, the server looks at the type of data i’m working with, if the model says it’s a “delayed” model type – it will store it in the memory cache and then after a minute, a process comes along and does all the inserts in a single blast.

Retrievals will also combine the database with the memory cache for results.

We don’t keep a huge number in the “delay” cache, but it means instead of 1000 inserts spread across 1 minute, it’s a single query done once every minute which should not only be quicker but reduce the amount of time any table locks may occur

I made a diagram to explain the process, I hope it clarifies things.

Game night

Next SoSa game night we will be WitchIt!

Sunday 13th December 1900-2100 GMT / 1200-1400 PT / 1500-1700 ET

It’s time once again for Boob and belly physics and we delve into the world of WitchIt!

The game recently had an update and we had so much fun playing last time around figured it was time to play again!

https://www.eventbrite.co.uk/e/sosa-gamenight-witch-it-tickets-130246198887

Don’t have it? Don’t worry!

If you’re going to get involved and want a copy, Give me a shout and i’ll buy you a copy 🙂

Stats

LinkedIn grew from 793 to 810

Patreon, We’re steady at 15! Shout out to Jelle for becoming a Patreon this sprint!

Our Beta List grew from 381 to 388

This sprint our Average position went up from 23.2 to 22.8! Impressions are up from 3.19k to 3.4k and Click through is up slightly from 2.2% to 2.3!

We’re apparently also ranking for the term “:’)”…

Although our Linking domains are down 19, It hasn’t affected our domain authority, so that’s good news!

That’s all folks!

  1. Precursor
  2. Sprint 1 – The Foundations
  3. Sprint 2 – The ummm Foundations?
  4. Sprint 2 – Nerd Ramble
  5. Sprint 3 – Cooking with matches!
  6. Sprint 4 – Now We’re Cooking With Gas!
  7. Sprint 5 – Robot Uprising
  8. This Is Not the Sprint You’re Looking For
  9. Sprint 6 – That’s a Weird Looking Patronus
  10. Sprint 7 – Corona Stole My Title
  11. Sprint 8 – Adventure Time!
  12. Sprint 9 – Now In Technicolor
  13. Sprint 10 – Refinement
  14. Sprint 11 – Motion In The Ocean
  15. Alpha Release 1.0.3
  16. Sprint 12 – No Rest For The Wicked
  17. Alpha Release 1.0.4
  18. Sprint 13 – I Need a Break
  19. Alpha Release 1.0.5
  20. Sprint 14 – Just James Things
  21. Sprint 15 – Wearing My Heart On My Sleeve
  22. Alpha Release 1.0.6
  23. Sprint 16 – Warm Up
  24. Alpha Release 1.0.7
  25. Sprint 17 – Coffee’s back on the menu!
  26. Alpha Release 1.0.8
  27. Sprint 18 – We’re on fire!
  28. Sprint 19 – Slowly fast
  29. Sprint 20 – Let’s get Nerdy
  30. Alpha Release 1.0.9
  31. Sprint 21 – We’re back!
  32. Alpha Release 1.1.0
  33. Sprint 22 – You Look Cute Today
  34. Alpha Release 1.1.1
  35. Sprint 23 – Sausage Smuggler
  36. A SoSa Retrospective
  37. Sprint 25 – I am SoSa and don’t call me Shirley
  38. Sprint 26 – The best laid schemes of mice and men
  39. Sprint 27 – Vogue, Strike a Pose
  40. Sprint 28 – a New Hope
  41. I Couldn’t Think Of a Title
  42. Guess who’s back, Back again!

Comments