DAGDA SEARCH | Back to results | Support

Mahendra Yadav

Source: https://userimack.wordpress.com

EKS Scalability – Why It Works So Well

Amazon EKS (Elastic Kubernetes Service) makes it easy to run Kubernetes at scale without the heavy lifting of managing your own control plane. One of its biggest strengths is scalability – it grows with your workloads, whether you’re running a few pods or thousands of containers.

Here are the key scalability features of EKS:

In short:

EKS combines Kubernetes-native autoscaling with AWS’s elastic infrastructure, giving you the flexibility to handle traffic spikes, optimize costs, and keep apps reliable at any size.

SOLID Design Patterns

SOLID is a set of five design principles that can be used to create more robust, maintainable, and extensible software. The principles are:

Some real-life examples,

GPG Key-Pair Encryption and Decryption cheat sheet

Create a new GPG key-pair

gpg --gen-key

Export your public key

gpg --export USER-ID

Import others public key

gpg --import FileName

Send encrypted message

gpg --recipient mahendra --encrypt filename

for creating ASCII ecrupted file
gpg --recipient mahendra --armor --encrypt filename

Read the encrypted message

gpg --decrypt file

Solving Method not implemented! gRPC Error

While working on grpc we might face this error, the solution is describe below.

_Rendezvous: <_Rendezvous of RPC that terminated with:
	status = StatusCode.UNIMPLEMENTED
	details = "Method not implemented!"
	debug_error_string = "{"created":"@1567057192.258984000","description":"Error received from peer ipv6:[::1]:50170","file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Method not implemented!","grpc_status":12}">

Check your class where you are implementing the interfaces. In that class you need to have a method which implements the logic to handle that interface.

For example let’s take an example of a todo protobuf message

service Tasker{
    rpc CreateTask(Task) returns (CreateTaskResponse) {}
....
....

The protobuf file can be find here: https://github.com/userimack/grpc_todo_app/blob/master/protos/todo.proto

If we don’t implement the CreateTask interface we will get this error. So we need to add the logic to handle that interface.

For example:

class Tasker(todo_pb2_grpc.TaskerServicer):
    def CreateTask(self, request, context):
        // Logic goes here
        return todo_pb2.CreateTaskResponse(op_status=dummy_status, task=task)

That’s it. 🙂

Link

Vim resource

Hi please find a good resource for maximising your productivity using vim.

https://medium.freecodecamp.org/learn-linux-vim-basic-features-19134461ab85

Python testing resources

https://us.pycon.org/2016/schedule/presentation/1927/

https://hypothesis.readthedocs.io/en/latest/

Useful resources to get started with node.js

To pre-render the page for SEO in Single Page Application –
https://prerender.io/

To get monogodb free online to get started with your app –
https://mlab.com/

For more resources on Node.js head over here:
http://github.com/pankaj805

Get all tags available for a docker images

Using the following small script we can get all the image tags available to us for pulling from docker hub public repository.
Code Snippet:
curl -sS 'https://registry.hub.docker.com/v2/repositories/mhausenblas/simpleservice/tags/' | jq '."results"[]["name"]' | sort

Here we are using a tool named jq and docker v2 api to get the image description and then using the jq we are parsing the tags. Hope you like the snippet.

Link

HTTP benchmarking tool

Have a look at the following benchmarking tool named wrk

Link

Decorators in python

Please have a look at the following link to better understand decorators in Python:
https://stackoverflow.com/a/1594484/4849157