Devstack is Razorpay's Developer Experience Solution for cloud on laptop

devstack

Devstack is Razorpay's Developer Experience Solution for cloud on laptop

What is Devstack

At razorpay, we run all our workloads on kubernetes. Like any other mature organization, we have an involved CI/CD practice with extremely sophisticated pipelines. While this works great for all production and pre-production workloads, we have been noticing over a period of time a bunch of development challenges. In essence, the goal is to Simplify developer workflow and reduce the time taken to rollout features independently. Devstack, offers a set of tools to help build and develop code on the individual developer's laptop, as if they are working on a cloud environment.

In a nutshell: "Its a client based development tool for building cloud native applications on kubernetes"

Presentations and Videos

Setup And Installation

Pre-Requisites

As we mentioned earlier, our solution is slightly opinionated and requires the following stack:

  • Cloud Provider : AWS(Note: Our custom infra helm hooks are all designed for AWS. However, it can be extended. See details below)
  • Kubernetes: Requires verion 1.15+
  • Traefik: 2.0+ to be deployed on the kubernetes cluster above. Please see the official installation instructions
  • Helm: 3.0+
  • LocalStack: To be deployed on kubernetes cluster above. Refer to LocalStack
  • Kube Janitor: Deploy Kube Janitor

Other requirements (For hot-reload) If you are using a loosely typed language like php / python etc, then you can safely skip this section. For static languages like golang, java, nodejs etc, please refer below:

Design Goals

High Level Goals

  • Streamlined Dev Workflow: Provide a streamlined workflow and faster merges to main or master branches.
  • Consistent Environment: Provide a seamless consistent environment across dev, stage, pre-prod and production environments
  • Faster Feedback: Reduce time to write and build containerized applications. Enable faster feedback loop on local development environment

Design Choices

  • Remove vendor lock-in (rely on OSS practically)
  • Kubernetes native (At the moment, we don't have extensions for non K8s solutions). Our environment is kubernetes native
  • Hassle Free onboarding - minimal changes to application and development lifecycle
  • Cost Effective - We should eventually be able to bill developers and teams on usage patterns.
  • Slightly Opinionated - This isn't a PaaS offering at the momemt. And hence can be extended and deployed on any native kubernetes installation

Features

  • Build, Test and Deploy applications from laptop directly into kubernetes using simple CLI tools
  • Ship code to remote container without tunneling: Sync files into container directly using File Sync(using Devspace)
  • Ability to provide hot reloading of apps : sync directly into the containers without restart(e.g. CompileDaemon for statically typed languages)
  • Support out-of-the-box support using existing available helm hooks
  • Support for extensible custom Helm Hooks that handles provisioning of AWS infrastructure components using LocalStack
  • Declarative-ly define service and service dependencies using Helmfile
  • Traffic routing to right upstream. Uses traefik 2.0 IngressRoute
  • Ability to selectively route traffic to different upstream. Done via opentelemetry context/header propagation
  • Ability to expose preview URL for all services
  • Automatic timed cleanup(ttl) of resources using Kube Janitor

Docs

Architecture

Please refer to the Architecture Overview for entire details on the devstack architecture.

Examples

TBD

Extension

We have provided a collection of custom helm hooks for AWS and kubernetes specific workloads. All of these are extensible. Please refer to the documentation of the helm hooks(TBD)

Need Help

Please file an issue on this repo using the following labels: Clarification, Feature, Bug

Contributing

Please refer to the Contribution Guide

Roadmap

TBD

Owner
Razorpay
Neobanking for Businesses
Razorpay
Comments
  • feat: adds secret cloner hook

    feat: adds secret cloner hook

    What this PR does: Adds the secret cloner , which would clone a secret or update with the given values TODO:

    • [ ] Add Readme for app usage
    • [ ] Add helm hook job reference
    • [x] Fix docker container bootstrap
  • Feature: Adds example SQS producer consumer cli app

    Feature: Adds example SQS producer consumer cli app

    Adds a sample golang SQS Producer Consumer Application. Uses localstack for testing

    Dependencies:

    • This should be merged after #3 is merged and this branch is rebased against master. This is coz, both share the same root folder example and would need conflict resolve, if at all.

    TODO:

    • [ ] Add K8s chart
    • [ ] Test on devstack
  • Create LICENSE

    Create LICENSE

    Add License.

    License of used Components:

    1. Helmfile - MIT License. Ref: https://github.com/roboll/helmfile/blob/master/LICENSE
    2. Devspace - Apache 2.0 License. Ref: https://github.com/loft-sh/devspace/blob/master/LICENSE
    3. Traefik - MIT License. Ref: https://github.com/traefik/traefik/blob/master/LICENSE.md
    4. Kube Janitor - GNU Ref: https://codeberg.org/hjacobs/kube-janitor/src/branch/main/LICENSE
  • feat: adds sqs configurator hook

    feat: adds sqs configurator hook

    What this PR does: Adds the sqs configurator , which would take the queue details as input and create the queues in either localstack or AWS along with updating the corresponding secret based on config TODO:

    • [ ] Add Readme for app usage
    • [ ] Add helm hook job reference
  • Feat: Adds demo web app

    Feat: Adds demo web app

    What this PR does: Adds a demo web app with tracing for demoing the devstack features. Single crud app. Simple Crud App. Api Documentation in docs with a postman collection for quick testing

    TODO:

    • [x] Add Readme for app usage and docker build
    • [x] Add K8s manifests and charts for the demo app
    • [x] Deploy and Test on devstack with preview URL
This Go based project of Aadhyarupam Innovators demonstrate the code examples for building microservices, integration with cloud services (Google Cloud Firestore), application configuration management (Viper) etc.

This Go based project of Aadhyarupam Innovators demonstrate the code examples for building microservices, integration with cloud services (Google Cloud Firestore), application configuration management (Viper) etc.

Dec 22, 2022
Solution to elevator test problem but this time recursive and in go

Synopsis A multi-floor building has a Lift in it. People are queued on different floors waiting for the Lift. Some people want to go up. Some people w

Nov 8, 2021
My Go solution that's faster than 95%

Palindrome-Partitioning My Go solution that's faster than 95% "Given a string s, partition s such that every substring of the partition is a palindrom

Nov 15, 2021
Weaviate is a cloud-native, modular, real-time vector search engine
Weaviate is a cloud-native, modular, real-time vector search engine

Weaviate is a cloud-native, real-time vector search engine (aka neural search engine or deep search engine). There are modules for specific use cases such as semantic search, plugins to integrate Weaviate in any application of your choice, and a console to visualize your data.

Jan 5, 2023
CapMonsterTool is a set of Go tools designed to simply make requests to the CapMonster Cloud API.

✨ CapMonsterTool ✨ About this module What is ✨ CapMonsterTool ✨ ? CapMonsterTool is a set of Go tools designed to simply make requests to the CapMonst

Dec 1, 2022
Phalanx is a cloud-native full-text search and indexing server written in Go built on top of Bluge that provides endpoints through gRPC and traditional RESTful API.

Phalanx Phalanx is a cloud-native full-text search and indexing server written in Go built on top of Bluge that provides endpoints through gRPC and tr

Dec 25, 2022
A server for TurboRepo Remote Cache to store cache artefacts in Google Cloud Storage or Amazon S3

Tapico Turborepo Remote Cache This is an implementation of Vercel's Turborepo Remote Cache API endpoints used by the turborepo CLI command. This solut

Dec 13, 2022
The temporal cloud cli.

tcld (Beta) A cli tool for managing Temporal Cloud namespaces. This cli tool is currently in beta and access to Temporal Cloud via the cli is restrict

Nov 1, 2022
Used gRPC for the first time, and it was a amazing developer experience

gRPC Used gRPC for the first time, and it was a amazing developer experience. Edge points of using gPRC which I felt: Structured Code Uniform request

Oct 11, 2021
A BPMN engine, meant to be embedded in Go applications with minim hurdles, and a pleasant developer experience using it.

A BPMN engine, meant to be embedded in Go applications with minim hurdles, and a pleasant developer experience using it. This approach can increase transparency for non-developers.

Dec 29, 2022
Secure Boot certificates from the Framework Laptop

Framework Laptop UEFI Secure Boot Certificates Source: Extracted from a live machine (FRANBMCP08) Date: 2021-10-21 KEK (Key Exchange Key) This certifi

Dec 8, 2022
Laptop Booking Application in Golang and gRPC, load-balancing with NGINX, and fully compatible with HTTPS OpenAPI v3

Laptop Booking Application in Golang and gRPC Goals GitHub CI & Coverage Badge Serialize protobuf messages Create laptop unary gRPC Search laptop Serv

Jun 17, 2022
provide api for cloud service like aliyun, aws, google cloud, tencent cloud, huawei cloud and so on

cloud-fitter 云适配 Communicate with public and private clouds conveniently by a set of apis. 用一套接口,便捷地访问各类公有云和私有云 对接计划 内部筹备中,后续开放,有需求欢迎联系。 开发者社区 开发者社区文档

Dec 20, 2022
Enables a FaaS experience for Knative / Cloud Native Runtimes.

Function Buildpacks for Knative Enables a FaaS experience for Knative / Cloud Native Runtimes. Will soon extend func to create deployable functions vi

Nov 2, 2022
This project provides fully automated one-click experience to create Cloud and Kubernetes environment to run Data Analytics workload like Apache Spark.
This project provides fully automated one-click experience to create Cloud and Kubernetes environment to run Data Analytics workload like Apache Spark.

Introduction This project provides a fully automated one-click tool to create Data Analytics platform in Cloud and Kubernetes environment: Single scri

Nov 25, 2022
Zadig is a cloud native, distributed, developer-oriented continuous delivery product.

Zadig Developer-oriented Continuous Delivery Product English | 简体中文 Table of Contents Zadig Table of Contents What is Zadig Quick start How to use? Ho

Jan 8, 2023
Zadig is a cloud native, distributed, developer-oriented continuous delivery product.

Zadig Developer-oriented Continuous Delivery Product ⁣ English | 简体中文 Table of Contents Zadig Table of Contents What is Zadig Quick start How to use?

May 12, 2021
stratus is a cross-cloud identity broker that allows workloads with an identity issued by one cloud provider to exchange this identity for a workload identity issued by another cloud provider.
stratus is a cross-cloud identity broker that allows workloads with an identity issued by one cloud provider to exchange this identity for a workload identity issued by another cloud provider.

stratus stratus is a cross-cloud identity broker that allows workloads with an identity issued by one cloud provider to exchange this identity for a w

Dec 26, 2021
Cloud-Z gathers information and perform benchmarks on cloud instances in multiple cloud providers.

Cloud-Z Cloud-Z gathers information and perform benchmarks on cloud instances in multiple cloud providers. Cloud type, instance id, and type CPU infor

Jun 8, 2022