Open in app

Sign In

Write

Sign In

Pramod Shehan
Pramod Shehan

78 Followers

Home

About

Feb 6

Deploy CockroachDB Cluster

Background CockroachDB is distributed SQL database. Main motivation of CockroachDB is to facilitate high scalability, consistency, resiliency and transactional(ACID guarantee). All data access in CockroachDB is transactional, which guarantees data integrity. CockroachDb always uses serializable isolation(every transaction behaves as if it had exclusive use of the entire cluster as it performed…

Cockroachdb

3 min read

Deploy CockroachDB Cluster
Deploy CockroachDB Cluster
Cockroachdb

3 min read


Jan 28

Java/Jakarta Persistence API(JPA)

Jakarta Persistence API is formerly known as Java Persistence API. JPA is a specification that facilitates object-relational mapping to manage relational data in Java applications. Most of the ORM tool like Hibernate, IBatis, Toplink are implemented JPA standards. It provides a support to work directly with object instead of using…

Jpa

4 min read

Java/Jakarta Persistence API(JPA)
Java/Jakarta Persistence API(JPA)
Jpa

4 min read


Jan 23

Istio Service Mesh

What is Sidecar? A sidecar is a separate container that runs alongside an application container in a Kubernetes pod. Sidecar is responsible for networking features such as inter communication, monitoring, security, timeouts, retries, circuit breaking communication protocols such as HTTP, GRPC. Sidecars are typically managed by some type of control plane.

Istio

4 min read

Istio Service Mesh
Istio Service Mesh
Istio

4 min read


Jan 22

Hello, Tapir ZIO & ZIO HTTP

Tapir Declarative, type-safe web endpoints library. With tapir, you can describe HTTP API endpoints as immutable Scala values. Each endpoint can contain a number of input and output parameters. Why tapir? type-safety: compile-time guarantees, develop-time completions, read-time information declarative: separate the shape of the endpoint (the “what”), from the server logic (the “how”) …

Scala

6 min read

Hello, Tapir ZIO & ZIO HTTP
Hello, Tapir ZIO & ZIO HTTP
Scala

6 min read


Jan 11

Istio Traffic Shifting

What is Istio Istio is an open source service mesh that layers transparently onto existing distributed applications. Istio is the path to load balancing, service-to-service authentication, and monitoring — with few or no service code changes. Deployment and Traffic shifting Traffic shifting makes it possible to gradually migrate traffic from one version of a micro service to…

Istio

6 min read

Istio Traffic Shifting
Istio Traffic Shifting
Istio

6 min read


Dec 20, 2022

HashMap Implementation

Map<String, String> map = new HashMap<>(); When we create a HashMap, it is stored in JVM heap memory. /** * The default initial capacity - MUST be a power of two. */ static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 When initialisation, it is created 16 buckets…

Hashmap

5 min read

HashMap Implementation
HashMap Implementation
Hashmap

5 min read


Dec 19, 2022

Writing a Simple Producer and Consumer Using ZIO Workflows

Here we are using zio-kafka library to build the kafka producer and consumer. "dev.zio" %% "zio-kafka" % "2.0.1" Serialize and Deserialize Data In ZIO, we are using Serdes to serialize our data to a byte array and deserialize byte arrays to our data types. ZIO Serde is supporting below mentioned primitive types.

Scala

4 min read

Writing a Simple Producer and Consumer Using ZIO Workflows
Writing a Simple Producer and Consumer Using ZIO Workflows
Scala

4 min read


Oct 5, 2022

SSL enabled with Apache and Certbot(Let’s Encrypt)

What is Let’s Encrypt? Let’s Encrypt is a non-profit certificate authority run by Internet Security Research Group. It provides X.509 certificates for Transport Layer Security encryption at no charge. The certificate is valid for 90 days. Install Apache and server maintain Execute the following command to install Apache2: sudo apt install apache2 Start and stop server sudo systemctl stop…

Ssl Certificate

3 min read

SSL enabled with Apache and Certbot(Let’s Encrypt)
SSL enabled with Apache and Certbot(Let’s Encrypt)
Ssl Certificate

3 min read


Oct 2, 2022

Overflow in Java/Scala

Overflow and underflow happen when we assign a value that is out of range of the declared data type of the variable. If the (absolute) value is too big, we call it overflow, if the value is too small, we call it underflow.

Java

3 min read

Overflow in Java/Scala
Overflow in Java/Scala
Java

3 min read


May 22, 2021

Play with minikube

minikube quickly setup a local Kubernetes cluster on our personal computer. So you can try out Kubernetes very easily. 1. Install minikube You need docker or a virtual machine environment. requirements 2 CPUs or more 2GB of free memory 20GB of free disk space docker or virtual machine manager(VirtualBox, VMWare) a. First download the latest minikube curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb

Kubernetes

2 min read

Play with minikube
Play with minikube
Kubernetes

2 min read

Pramod Shehan

Pramod Shehan

78 Followers
Following
  • omgzui

    omgzui

  • Dileesha Rajapakse

    Dileesha Rajapakse

  • (λx.x)eranga

    (λx.x)eranga

  • Thilina Ashen Gamage

    Thilina Ashen Gamage

  • Manoj Ahirwar

    Manoj Ahirwar

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech