Finally it is possible to connect via CLI to your running containers in AWS ECS Fargate/EC2 via the AWS CLI/API. No matter if your ECS cluster runs in a private subnet or not. No bastion/jump host is necessary. At the moment only the newest 1.* AWS CLI release has the new aws ecs execute-command on board. AWS CLI Version 2 will get an update in the next weeks.
First off all we need to enable the agent on the ECS service to accept commands. This can be done with the AWS CLI like this:
aws ecs update-service --cluster nginx-cluster --service…
In this post we take a look what AWS RDS offers to be a high performant and resilient database system. RDS has two capabilities called Multi AZ and read replicas to get this done.
You covered your codebase with unit tests but you’re still facing some weird bugs from time to time and don’t know how to find the issues in your web application, serverless endpoint or cron job script? This post will guide you through the pain of setting up debuggers in your IDE and describes how a debugger works in detail.
All the code used in this post can be found here: https://github.com/stefpe/node_debugging
Debugging means to find a bug/anomaly in your code/program. Normally you can use a debugger to start your program in a monitoring mode to see what happens by stepping…
You want to check services running in a private subnet in your VPC on AWS, or just want to play around with the shell on a small instance on your private network? This guide shows you how to access an EC2 instance on a private subnet within your VPC via SSH:
In this post we’re gonna implement a search as you type feature with Symfony. We will feed product information into Elasticsearch, build a user interface to search for a product by it’s title and manage the Symfony integration to query Elasticsearch.
Elasticsearch is an open source search and analysis engine based on Apache Lucene developed in Java. Feed it with your data using a REST interface and explore it with powerful queries and aggregation possibilities. Use it as a base for analytical dashboards or realtime systems.
Elasticsearch is designed as a distributed system from the ground up to build a…
Let’s checkout how to connect Symfony with Amazon SQS and SNS Services by using a Symfony component.
Github repo for this article:
It’s a Message-Bus that can be used for the following design patterns:
We are going to use a Command-Bus pattern that seperates the description, what needs to be done, from where it’s going to happen. It’s like getting an order in a restaurant that gets prepared in the kitchen. In our case we will create a TestMessage object, that gets send and consumed by a handler.
Create a Symfony CLI skeleton:
docker run — rm…
Are you tired of storing a file with your application secrets in a password manager and need to copy it to your CI/CD environment everytime you change it to deploy your application in a security compliant way?
Create a docker-compose.yml in your project root and add the following:
(See PHP Docker development with XDEBUG explained here)
version: '3' services: php: image: webdevops/php-nginx-dev:7.4 working_dir: /app environment: - WEB_DOCUMENT_ROOT=/app/public - PHP_DISPLAY_ERRORS=1 - PHP_MEMORY_LIMIT=2048M - PHP_MAX_EXECUTION_TIME=-1 - XDEBUG_REMOTE_AUTOSTART=1 - XDEBUG_REMOTE_PORT=9000 - XDEBUG_PROFILER_ENABLE=0 - XDEBUG_REMOTE_CONNECT_BACK=0 - XDEBUG_REMOTE_HOST=docker.for.mac.localhost - php.xdebug.idekey=PHPSTORM - php.xdebug.remote_enable=1 - php.xdebug.max_nesting_level=1000 ports: - "8080:80" volumes: - ./:/app:rw,cached depends_on: - mysql mysql: image…
For applications it’s often really annoying to aggregate data in memory with a self written command/program instead of having this already done by the storage engine, which holds the data. The point is, it’s really cumbersome to fetch data from a database, aggregate it within a program and write it to another table, which will be used as data source for another program. When you see something like this, please always try to get rid of this aggregation work and let your storage engine handle it. So let’s clearify how materialized views can help in this situation.
First of all…
It‘s much better to discover a missing bedroom while the
architecture is just a blueprint, rather than on the moving day (by Paul Clements)
In a software architecture assessment, you try to find problems within the architecture / implementation. When can you do that?
In practice the assessment is done most of the time after the implementation is done and the project is already in production.
The tiny architectural review approach(TARA) was invented for situations…
S3 = Simple Storage Service
Stored objects consist of the following structure:
The storage size for an object can be from 0 bytes to 5 terabytes.
A Bucket is like a unique namespace where you can store your objects in. …