By Carlos Rodrigues
8 min read
Event-driven systems have well-known advantages and most modern distributed system architectures leverage events to reduce latency, improve scalability, and overall, make everybody’s life a little
Continue readingSetting up Change Data Capture with Debezium and PostgreSQL
Read more about Setting up Change Data Capture with Debezium and PostgreSQL
By Carlos Rodrigues
1 min read
To determine whether a PostgreSQL configuration change requires a service restart, query select name, context from pg_settings. If the context is postmaster, the setting requires a restart; otherwise a reload is sufficient.
Read more about PostgreSQL – which configurations require a service restart
By Carlos Rodrigues
2 min read
As many .NET developers transitioning to the world of Node, I started looking for an ORM. After some research, I found sequelize which seems widely adopted by the community.
I’m using typescript, and I quickly found the way to define the model with sequelize a bit too verbose, and especially a duplication of the typescript class.
That’s when I discovered sequelize-typescript, which provides this bridge, and leverages typescript’s typings, so mapping can be transparent if so we wish. All it takes is to extend a base Model class, and some annotations.
Continue readingSEQUELIZE AND TYPESCRIPT
Read more about SEQUELIZE AND TYPESCRIPT
By Carlos Rodrigues
1 min read
Having to temporarily wear the DBA hat for a couple of days, I found myself backing up and restoring lots of databases, across different environments.
Continue reading[SQL SERVER] – CHECK RESTORE / BACKUP PROGRESS
Read more about [SQL SERVER] – CHECK RESTORE / BACKUP PROGRESS
By Carlos Rodrigues
1 min read
Lately I had to provide the location of our SQL server error logs to an infra team, so they could be copied somewhere else. Raising a…
Continue readingWHERE ARE SQL SERVER ERROR LOGS STORED?
Read more about WHERE ARE SQL SERVER ERROR LOGS STORED?
By Carlos Rodrigues
1 min read
One of these days I had the need to obtain a random datetime inside a specified range, on SQL Server 2008+. After a few minutes…
Continue reading[SQL SERVER] – GENERATE RANDOM DATETIME WITHIN A RANGE
Read more about [SQL SERVER] – GENERATE RANDOM DATETIME WITHIN A RANGE
By Carlos Rodrigues
2 min read
I recently needed to map a C# class to a database table using FluentNHibernate. So far so good…. But then I got stuck as one…
Continue readingUSING AN ENUM ON A FLUENTNHIBERNATE MAPPING [C#]
Read more about USING AN ENUM ON A FLUENTNHIBERNATE MAPPING [C#]