Sprint 22 – You Look Cute Today
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:
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.
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!
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 🙂
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!
- Sprint 1 – The Foundations
- Sprint 2 – The ummm Foundations?
- Sprint 2 – Nerd Ramble
- Sprint 3 – Cooking with matches!
- Sprint 4 – Now We’re Cooking With Gas!
- Sprint 5 – Robot Uprising
- This Is Not the Sprint You’re Looking For
- Sprint 6 – That’s a Weird Looking Patronus
- Sprint 7 – Corona Stole My Title
- Sprint 8 – Adventure Time!
- Sprint 9 – Now In Technicolor
- Sprint 10 – Refinement
- Sprint 11 – Motion In The Ocean
- Alpha Release 1.0.3
- Sprint 12 – No Rest For The Wicked
- Alpha Release 1.0.4
- Sprint 13 – I Need a Break
- Alpha Release 1.0.5
- Sprint 14 – Just James Things
- Sprint 15 – Wearing My Heart On My Sleeve
- Alpha Release 1.0.6
- Sprint 16 – Warm Up
- Alpha Release 1.0.7
- Sprint 17 – Coffee’s back on the menu!
- Alpha Release 1.0.8
- Sprint 18 – We’re on fire!
- Sprint 19 – Slowly fast
- Sprint 20 – Let’s get Nerdy
- Alpha Release 1.0.9
- Sprint 21 – We’re back!
- Alpha Release 1.1.0
- Sprint 22 – You Look Cute Today
- Alpha Release 1.1.1
- Sprint 23 – Sausage Smuggler
- A SoSa Retrospective