Cerebrum Brainstorm Blog

See what we’ve
written lately
Lucian Buzzo
Sarju Hansaliya
Meet our author Meet our authors Meet our top authors
Sarju Hansaliya

Setting Up HTTPS for Local Development: A Comprehensive Guide

At Cerebrum, we’ve integrated Ory Kratos, a sophisticated authentication solution, into our products. However, this integration presented a unique challenge during local development: Ory Kratos heavily relies on secure cookies for its browser operations. In production, our infrastructure naturally operates under an HTTPS domain. But when developing locally with...

Lucian Buzzo

Stable sorting in Prisma

At Cerebrum we recently came across a tricky bug, where we would see records being repeated when paginating through a list of records. The pagination was implemented in a simple way, using skip and take arguments to retrieve a subset of records from the database, one page at a time....

Lucian Buzzo

You need to stop Undifferentiated Heavy Lifting

In 2006, Jeff Bezos gave a keynote speech at MIT, where he introduced the concept of "Undifferentiated Heavy Lifting". In this address, Bezos discussed the challenging and often unseen tasks associated with managing a digital platform, which online business owners must confront. While these tasks may not directly contribute to...

Lucian Buzzo

How to use session context in Prisma

At Cerebrum we’re big fans of Prisma, as it makes it super easy to create and migrate data models. However, one difficulty we’ve found is that the middleware functionality offered by Prisma is essentially stateless and doesn’t give you an out-of-the-box way to access the context in...

You’ve successfully subscribed to Cerebrum Blog
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.