µAPI Manager for Docker Swarm

Docker Swarm by its own, and also any kind of cloud orchestrator, lacks of API Gateway management. The main focus of Cloud Platform is to provide orchestration and network communication between microservice. But the Gateway is important as well if you need to expose API to a client (say a ReactJS application, or a mobile […]

Read More…

My blog does not use cookies

My idea concerns was to limit the maintenance work to the minimum, still being effective. But which alternatives are available? No analytics ✅ Legal Perspective (EU / GDPR / ePrivacy) Not using tracking tools like Google Analytics can indeed help you avoid needing a cookie consent popup, if: 1. You don’t store or access any […]

Read More…

On Software Architetture(s)

Every piece of software written has an architecture. Yes, even a bash script has a (embryonal) architecture: it has input, output, and satisfy some kind of feature (or features). There are a number of viable choice for implementing or adopt an architecture for the code you are going to write. Why is important to know […]

Read More…

docker swarm: communication problem

Having different version of docker running on different nodes, it happens to experiencing problems. Docker Swarm is a community project maintained in https://github.com/moby/moby github repository, it lack a number of features that are provided by kubernetes, but still someone is using this for experimental and bridge-to-kubernetes, because it is very simple to understand and manage. […]

Read More…

Implementing Authorization Workflow (on Amazon SP API)

Amazon Selling Partner API documents two kinds of authorization workflow, one starting from your website app https://developer-docs.amazon.com/sp-api/docs/website-authorization-workflow, and the other one starting from the Amazon App store. Authorize from your website While implementing the authorize workflow from your website, you start assuming that the user is already logged in. This means the browser is keeping a […]

Read More…

Error Management: Go vs Rust vs Exception-based

I want to write some reference for error management in Rust and in Go, versus exception-class based language, maybe Python deserve a specific session, I will update that, but basically the point of exception-based error management is the sub-classing of a Exception class and the try {…} catch(…) {…} block for handling exceptional cases Golang […]

Read More…

multi stage rocket flying

Dive into (useless?) uncovered case of multistage dockerfile

Looking at the upstream documentation of Multi-stage builds there are some examples but this is missing: Ok, I mean, the example by itself is useless, but “it works”. Try: docker build -f Dockerfile -t copiedfrom-rust:v0.1 . Then: docker run -it copiedfrom-rust:v0.1 sh Real use case scenario Lets get serious now: why? Suppose you are inside […]

Read More…

Rust: riferimenti e lifetime

(… oggi ho imparato che … premessa) Cosa vuol dire “lifetime” in Rust: A lifetime parameter does not allow you to choose how long a value lives, it only allows you to communicate to the compiler that two or more references are “related” to the same memory and are expected to share the same lifetime. […]

Read More…