Mert Özen Go Beyond the Code

Blog

Posts and series that take software and IT from the basics to advanced topics: from programming languages and databases to architecture and AI.

Series
1990 posts found
Testing in the Pipeline: Fast Feedback, Quality Gates and Flaky Tests
DevOps PART 04

Testing in the Pipeline: Fast Feedback, Quality Gates and Flaky Tests

Ordering tests in the pipeline from cheap to expensive (formatting, unit, integration with Testcontainers, e2e with Playwright) and adding quality gates such as warnings, coverage and bundle budgets gives fast, trustworthy feedback; a flaky test needs its root cause fixed rather than a retry. How a test without assertions inflates coverage, a real flaky test failing 2 of 30 runs, and an empty Playwright shard.

8 Nov 2026 11 min 68
Build Once, Deploy Many: Artifacts, Versioning and Immutable Packages
DevOps PART 03

Build Once, Deploy Many: Artifacts, Versioning and Immutable Packages

Building an artifact once and carrying that same artifact, by tag or digest, from staging to production guarantees that what was tested on staging is what reaches production; even building the same commit twice yields different images. Reproducible builds with lock files and npm ci, stamping versions with the commit SHA, the :latest trap, and a runtime config.json for Angular.

8 Nov 2026 10 min 60
Pipeline Anatomy: Triggers, Stages, Jobs, Steps and Failing Fast
DevOps PART 02

Pipeline Anatomy: Triggers, Stages, Jobs, Steps and Failing Fast

A pipeline starts with triggers and is made of dependent jobs (stages in Jenkins) and steps that run in order; putting the build logic in a script that runs locally, letting the pipeline only orchestrate, moving cheap checks first and failing fast across parallel branches all speed up feedback. A GitHub Actions, Jenkins and Azure DevOps term mapping, with real output from act and Jenkins.

8 Nov 2026 10 min 59
CI, Continuous Delivery and Continuous Deployment: The Differences and Why They Matter
DevOps PART 01

CI, Continuous Delivery and Continuous Deployment: The Differences and Why They Matter

CI means everyone integrates into the mainline every day and every push runs an automated build and tests; continuous delivery keeps every commit releasable and leaves going to production as a decision, while continuous deployment removes that button too. An integration hell scenario, Fowler's 2024 practices, a CI workflow run with act, and the MinimumCD checklist.

8 Nov 2026 8 min 67
Version Migrations for Background Jobs: BackgroundService Changes from .NET 6 to 10, .NET 11 and Quartz 3→4
Backend PART 11

Version Migrations for Background Jobs: BackgroundService Changes from .NET 6 to 10, .NET 11 and Quartz 3→4

.NET 6 started stopping the host on a BackgroundService failure, ShutdownTimeout went from 5 to 30 seconds in .NET 7, .NET 8 brought lifecycle hooks, and .NET 10 moved all of ExecuteAsync to the background: an exception before the first await crashes the process with code 134 on .NET 8 but is logged and exits with 0 on .NET 10. In Quartz 3→4 a simple job gave a single CS0535 error; the real work is packages, the schema migration and changed defaults.

8 Nov 2026 10 min 91
Job Dashboards, Monitoring and Alerting: Hangfire Dashboard, Quartz 4 Dashboard and OpenTelemetry
Backend PART 10

Job Dashboards, Monitoring and Alerting: Hangfire Dashboard, Quartz 4 Dashboard and OpenTelemetry

The Hangfire Dashboard is open only to local requests by default, but a request coming through a proxy on the same machine counts as local too: a request through Docker got a 200. In production, put the dashboard behind an authorization policy and read-only mode; the Quartz 4 dashboard won't start at all without authorization. A "last successful run older than 26 hours" health check, Quartz 4's OpenTelemetry spans and metrics, and structured logs carrying the JobId complete the picture.

8 Nov 2026 10 min 99
Long-Running and Batch Jobs: Chunking, Checkpoints and Surviving Deploy Interruptions
Backend PART 09

Long-Running and Batch Jobs: Chunking, Checkpoints and Surviving Deploy Interruptions

Doing a 2-million-row price update in a single UPDATE made a request updating the same row wait 1.9 seconds; with 20,000-row chunks it waited 4 ms. A job that commits each chunk in the same transaction as its checkpoint row stopped at row 800,000 during a deploy and carried on from there after restarting. Hangfire protects long jobs with a sliding invisibility timeout; if the process dies, the job moves to another worker once that window passes.

8 Nov 2026 11 min 94
Jobs Across Multiple Instances: Distributed Locks, Leader Election and Double Execution
Backend PART 08

Jobs Across Multiple Instances: Distributed Locks, Leader Election and Double Execution

A BackgroundService in three replicas produces the nightly report three times; a lock taken through DistributedLock on SQL Server sp_getapplock, a PostgreSQL advisory lock or Redis brings that down to one. When the lock's owner dies by kill -9, on Redis nobody holds the lock until the 30-second lease ends; on PostgreSQL it stayed with the dead process until the server noticed the dropped connection, about a minute in my test. A lock isn't a guarantee, it's a lease.

8 Nov 2026 12 min 106
Retry and Idempotency in Background Jobs: Living with At-Least-Once
Backend PART 07

Retry and Idempotency in Background Jobs: Living with At-Least-Once

A background job runs at least once and sometimes twice; retries make that even more likely. Hangfire retries 10 times at growing intervals by default and ExceptOn takes permanent errors out of retries; in Quartz 4 a retry policy is declared explicitly. "Check, then send" produces two emails from two concurrent runs; claiming first with a unique key brings it down to one, and an Idempotency-Key header does the same end to end with an external API.

8 Nov 2026 12 min 91
Scheduling with Quartz.NET 4: Jobs, Triggers, Persistent JobStore and Clustering
Backend PART 06

Scheduling with Quartz.NET 4: Jobs, Triggers, Persistent JobStore and Clustering

In Quartz.NET 4, jobs and triggers are separate objects, IJob returns ValueTask and takes a CancellationToken, and DI and hosting live in the core Quartz package. Two nodes sharing one PostgreSQL database form a cluster: when the executing node dies by kill -9, the other notices about 15 seconds later and reruns the RequestRecovery job with recovering=true. At startup the code definition overwrites the JobDataMap stored in the database; IgnoreDuplicates prevents that.

8 Nov 2026 11 min 75
Persistent Jobs with Hangfire: Fire-and-Forget, Delayed, Recurring and Continuations
Backend PART 05

Persistent Jobs with Hangfire: Fire-and-Forget, Delayed, Recurring and Continuations

Hangfire writes a method call to the database as a type name, a method name, parameter types and arguments serialized to JSON; it survives restarts and is retried 10 times by default. That's why only ids should be passed as arguments: a DbContext can't be serialized, and an entity is stored as a stale copy. Renaming a method sends old jobs still in the queue into retries with a method-not-found error.

8 Nov 2026 10 min 107
Cron Expressions: Unix 5-Field, 6-Field with Seconds, Quartz Format and Time Zone/DST Pitfalls
Backend PART 04

Cron Expressions: Unix 5-Field, 6-Field with Seconds, Quartz Format and Time Zone/DST Pitfalls

Unix cron has 5 fields, Quartz wants 6–7 fields starting with seconds and counts weekdays as 1=Sunday; Quartz 4 rejects "0 0 * * *" with the default parser and accepts it with CronFormat.Unix. Across DST, a daily 02:30 job runs once at 03:00 in spring and only once in autumn, while interval jobs run twice in the repeated hour. You can write your own cron scheduler on TimeProvider and test it with FakeTimeProvider.

8 Nov 2026 13 min 85
Blog Map