Paul Sterl has written 51 articles

Datenbank Timeouts | Locks | Isonaltionlevel | Transaktionen

Häufig vergessen, oder nur teilweise gemacht. Timeouts tragen einen wesentlichen Bestandteil zur Stabilität und dem Ressourcenmanagement von Software bei. Insbesondere bei Microservices sollten diese immer richtig eingestellt sein. Timeouts spielen auch eine wesentliche Rolle in Bezug auf Transaktionen, Locks und Isolationslevel. Sollte man zudem den Zugriff auf die Datenbank auch Dritten gewähren, also nicht nur…

A better way for TypeScript Enum

A better way to define enums in Typescript In this way it is much easier to provide an enum including a potential mapping to a different value e.g. a display value. This solution is usually considered being better, as long as enums aren’t supported by JavaScript natively. Links

Azure Bicep CLI and functions cheet sheet

Overall Azure bicep is the best repalcement for AWS CDK currently available (2023) and the recommended way to express infrastructure-as-code in the aure universe. Bicep CLI All command require azure CLI and PowerShell 7.x.x Select subscription by name / set context Set default Run bicep deployment Read resource group List resource groups Bicep functions Random…

Azure Node Functions Apps and OpenAPI Swagger

Sometimes we face the problem that we want to host a very simple web-service including a swagger-ui / OpenApi-UI. The question now is, what is the simplest solution, which works everywhere, even in a azure function app? Where are of course some libs etc. which on the other hand require us to run the web-server.…

Azure DevOps Function App Deployment „No package found“

Problem This error occurs using the default MS deployment example. Even if we have an uploaded artefact Solution The problem is, that we have a deployment step by default but the MS documentation is outdated and so is missing the download step: As so we have to: Deploy Node Function App using Azure DevOps The…

Quartz integration in Spring

Why Quartz? motivation Spring comes already with an own timer and this is fine if we have very simple requirements and we don’t really care about state or on which pod the timer is actually running. To be more precise the timer/ job is running in each of our spring containers independently. Lets be honest,…

Disable @Scheduled timers for test in Spring

Problem As soon we have timers in our project they may cause issues in our integration tests, as they start running in the most undesirable situation. E.g. during the trigger a specific function which would usually be triggered by the timer. Solution In the easiest scenario if it is a in memory Spring test we…