PJPiotr Jurewiczinrubywizards.com·Jan 11, 2022 · 2 min readOvergrown Tenant class decompositionIf you have been working on a multi-tenant application for a long time, there is a high chance that your Tenant model has grown to an enormous size. You probably started with id, name, and subdomain columns. Later there were things that had to be con...00
PJPiotr Jurewiczinrubywizards.com·Nov 10, 2021 · 1 min read3 ways to make big numbers readable in RubyToday, I came across the following method in my old code. (This comes from an application supporting calculations in the construction of concrete floors). def l_factor ((bending_stiffness * 10000000000) / k) ** 0.25 end This big number looks ...00
PJPiotr Jurewiczinrubywizards.com·Aug 31, 2021 · 2 min readAs simple as... the Inventory bounded contextLast weekend I went to the dynamIT conference that took place in Kraków. In his presentation, Andrzej Krzywda was speaking about DDD as Low-Code. He distilled 11 bounded contexts that are common in the different business applications. One of them is ...00
PJPiotr Jurewiczinrubywizards.com·Apr 23, 2021 · 2 min readAccessing Cloudfront stream with VideoJS and server-side signed cookiesToday's post is a continuation of what I wrote yesterday about securing Cloudfront stream with signed cookie. I encourage you to open this post especially to look at the UML diagram. There are some things you need to keep in mind to access a stream ...00
PJPiotr Jurewiczinrubywizards.com·Apr 22, 2021 · 2 min readSecuring Amazon Cloudfront stream with signed cookiesIn one of my recent posts I described the challenges I faced while building the audiobook streaming platform. One of them was securing access to the Cloudfront stream. There are two ways of securing content that CloudFront delivers: signed URLs and ...00