Mocking

Mocking end to end testing for http endpoints, Simple Http/Https mocking server implemented in Go. Simple service to easily get started with mocking for end to end testing and development.

Photo by Javardh on Unsplash

TL;DR

Mocking API Server — Simple service to easily get started with mocking for end to end testing and development implemented in Go.

Code: https://github.com/MalcolmPereira/mocking

Unit Testing

Test Driven Development emphasizes starting with test cases first, writing a failing test and then implementation to make the test pass, we continue working our way up following the “red/green/refactor” mantra building on our implementation.

All is well until we hit a wall interacting with external…


Build and Test AWS Serverless Application Locally

Build AWS Serverless Application Model locally using AWS SAM CLI and LocalStack . Image processing serverless application using Amazon API Gateway, Amazon S3 and AWS DynamoDB built and tested locally using mock AWS services.

Photo by Luca Bravo on Unsplash

TLDR;

We explore what is Serverless and walk through a simple image sampling serverless application. We develop and test application locally using LocalStack to mock AWS services not needing an AWS account. This helps when we do not want to incur cost on AWS for quick tests.

Code: https://github.com/MalcolmPereira/serverless-aws.git

1. What is Serverless ?

Before we answer what is Serverless, let’s explore following fundamentals — On Premise, IaaS, PaaS and SaaS.


Photo by Dries Augustyns on Unsplash

AES File Encryption

AES File Encryption utility in Go. Implementation wraps go crtypto/aes package to encrypt/decrypt file. Multi Factor Encryption utility.

TL;DR

CKUREIT — Simple utility to encrypt and decrypt files, Multi Factor Encryption solution. Use a secret to perform AES encryption on a file, which returns unique secure token. Use same secret and secure token to decrypt file.

We look briefly at hashing and encryption, finishing up with CKUREIT implementation.

Show me the code

CKUREIT — https://github.com/MalcolmPereira/ckureit

Introduction

Encryption allows for sharing and storing data locally or in the cloud with high confidence that sensitive information is not easily…


Photo by Alexander Kaunas on Unsplash

Step by Step Guide — Microservices using Quarkus

Microservice example using Quarkus. Docker images for microservices. Kubernetes deployment. Distributed tracing using Jaegar. Centralized logging using ELK stack.

TL;DR

This article covers microservices implementation using Quarkus: Supersonic Subatomic Java. We look at Quarkus to realize a microservices architecture for a simple image sampling service.

We will list steps to incorporate Quarkus extensions for OpenAPI service definition, REST clients, Eclipse micro profile metrics, Distributed Tracing and Centralized Logging. We also look at creating Docker images for JVM and building Native images using GRAAL. The article concludes with deploying services to Docker Compose and Kubernetes.

Malcolm Pereira

Agile Practitioner, Cloud and Programing Enthusiast. Experiments with technologies : Languages, Concepts, Tools and Utilities

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store