Easily remember ManyToMany ManyToOne OneToMany

ManyToMany in a Person Blog Relationship A Person can be a subscriber of many blogs. A Blog can have many subscribers.

But since this is an inefficient way to manage usually a proxy table is used with [PersonID], [BlogID], aka the 2 related data models. ManyToOne and OneToMany in a Person Blog Relationship A…

Read Article

Vue composition api: ensure variable is not null

I ran into a problem where I was loading data from the backend in App.vue and when loaded that data would be inserted into a vuex store and in another component queried. However the loading took longer than expected and a data race happened. The route destination rendered faster than the backend could deliver data…

Read Article

Why do I need microservices?

Microservices are supposed to solve the scaling problem. Aka the solution to a monolith only being able to handle so many requests / second is microservices that potentially have replicas.

Read Article

Upgrade Keycloak Standalone with Postgres from 16.1.0 to 17.0.0 with custom port behind nginx reverse proxy

What a nightmare. You’re using keycloak and are upgrading from Wildfly 16.1.0 to Quarkus 17.0.0. You’re also listening on a non-standard port, that isn’t 8080, but 23232. You’re using a reverse proxy like nginx for TLS and Keycloak is connected via plain http with nginx. Grab your standalone.xml found in /standalone/configuration/standalone.xml and find your postgres…

Read Article

centos 7 & mysql 5.7 gpg key error proper solution

If you’re running CentOS7 and using the MySQL 5.7 community rpm package you might’ve ran into this error response:

Seems like Oracle has changed their GPG key and it’s not uploaded to gpg servers yet, at least yum can’t find the new key. So you have to manually replace your key. Disabling gpgcheck is…

Read Article