Browsed by
Author: amrit0403

Rails Like Golang Setup With Revel and GORM

Rails Like Golang Setup With Revel and GORM

The popularity of Golang has been increasing since its inception. The recent survey shows 76% of the users are using Golang at work and 66% are using it outside the workplace. There are many developers who are transitioning from other languages and frameworks to Golang for better performance. Many are moving their existing applications to Golang or developing their new apps in Golang. Why Revel? Like many others, our application was written in Ruby on Rails. We started working on a new application,…

Read More Read More

How To Use Sidekiq As Background Job Processor For Golang

How To Use Sidekiq As Background Job Processor For Golang

Using one of the most popular frameworks, Sidekiq with Golang Context Many developers start with Rails and as the application grows they start writing code in other languages like Golang. Generally, Sidekiq is used for background jobs Rails. Why not use Sidekiq for Golang! Open Source Library Sidekiq compatible background workers in golang. jrallison/go-workers Run the following command. go get github.com/jrallison/go-workers Sample Code AddJob method provides a mechanism to queue a new job in the Sidekiq queue. The method can be used…

Read More Read More

Secure AWS EC2 Instances With MFA and SSH Key Rotation

Secure AWS EC2 Instances With MFA and SSH Key Rotation

Idea The primary idea behind this architecture is to securely access EC2 instances over SSH. There are two parts to this: Secure SSH access to Bastion host using MFA. This process is explained in this AWS blog. Public and Private SSH keys to access EC2 instances from the Bastion host are rotated periodically. An AWS Blog (https://aws.amazon.com/blogs/security/how-to-use-aws-secrets-manager-securely-store-rotate-ssh-key-pairs/) was a great help to understand this setup. It has Cloudformation scripts to setup the Bastion Host and other EC2 instances. We made few…

Read More Read More