Skip to main content

JavaScript Objects Cachification

· 14 min read
Alexander Lolis
Systems · Product · Teams

In one of our backend services, we have a class, that is basically the business model of the service and is used in many locations within the code. At some point, we decided that we need to do some caching since a few methods were doing very expensive calls to other remote services and they didn’t need to occur that often.

How do you add caching to a class that is used very often within the rest of the codebase in the least intrusive way? You wrap the prototype of the class of course! And how do you wrap the prototype of the class? With another function that does the wrapping of course!

How to tag data in Redis

· 5 min read
Alexander Lolis
Systems · Product · Teams

Redis is a wonderful piece of technology. An in-memory, super-fast key-value database, which if you do not already know that it exists, you have been living under a rock.

The cool thing about Redis, is that it supports more data types than simply storing string key-value pairs, and that’s when the fun begins. One of those data types, which will help us with our tagging exercise, is Sets.

Fight or flight? Breathe instead

· 10 min read
Alexander Lolis
Systems · Product · Teams

We’ve all been there. Feeling the frustration, the unfairness, and the negativity consuming us while everything is getting out of our control.

Emotions take over your brain and you are suddenly overwhelmed by your own feelings, leaving no room for rational thinking. That’s when your flight or fight response kicks in.

Thanks to amygdala hijacking, rational thinking becomes very difficult, and smashing a chair on someone’s face or storming out of a meeting room becomes very tempting. But please, do not do it, and instead, take a DEEP breath in order to make the first step into regaining consciousness.

Remote work tips - How NOT to snap

· 3 min read
Alexander Lolis
Systems · Product · Teams

Lot of these articles going around these days due to COVID-19, but I felt like giving my two cents since I’ve been a freelancer in the past, mostly working from home, so I know how it feels like.

Despite what everyone thinks about the awesomeness of working from the comfort of your couch, it’s definitely not easy. Αfter a while, no matter how many tips you are going to read, it’s up to you to try and achieve mental toughness.