499 error and setting nginx timeout for specific paths on kubernetes ingress

Timeout, but where?! Some time ago I had a situation, where Kubernetes cluster thrown an unexpected timeout in faces of my clients. Situation a bit awkward, since timeout doesn’t mean nothing good - something is definitely not OK, when your script consumes too much time to be executed, right? I did…

How TypeScript guards react components

Some time ago we discussed discriminated unions as a super-feature of TypeScript which helps in keeping business rules straight in the code. Here is how we can transform this idea into React ecosystem. Let’s make sure our components are used in the right way. Unlimited variants as a highway to…

Here’s why I’m not excited about JavaScript types

A few weeks ago, the news that JavaScript would finally have its type system came like a bolt from the blue. A team whose members are, among others, responsible for creating TypeScript prepared a document proposing to introduce typing into JavaScript. The environment, excited about such a turn of…

How union let me sleep tight

Discriminated Union is my one of the most favorite mechanisms delivered by TypeScript. Maybe you are not aware, but unions are perfect for modeling business domain inside your application. In this post, I will show you, how to make your code typed stronger and more business oriented. Simple model…

json-server, best friend of solitude startuper

Prototyping idea is crucial part of building application. You can check if your product works and meet future client's requirements. It's easy to handle, when you are in a big team, with many developers on board. But how to handle it, when you work solo?

Sequelize - order by joined models

Sometimes we want to get more data from the database at once. Sequelize gives us such possibility by including models. But what if we want to do something more with these joined models? Let's take a look on some cases.

Page 1 Of 3