Posts
Deploy model with FastAPI and Heroku
In this blog we will see how we can deploy our model with FastAPI and Heroku. Below technologies will be used:
FastAPI Heroku Docker Github workflow AWS Our model will classify images of dogs and cats.
First Generating the model We use the data from https://www.kaggle.com/c/dogs-vs-cats . A model is creted using pretrained resnet model. The kaggle notebook is available here. Not really a SOTA model but it is good enough for our purposes.
Posts
Give your learning a structure
Technology is ever-evolving and as developers, we are in a constant chase to keep ourselves up-to-date. If you are someone like me who often suffers from FOMO ( Fear of missing out), you might have found yourself with a never-ending TODO list of things to learn and yet had a feeling that too little has been achieved. Below are some of the tricks that I have used over time to keep myself focussed and manageable.
Posts
Spring Boot Actuator Health Endpoint
Health endpoint for a service exposes status of it’s state. This state information is useful to determine whether the application is up and ready to accept requests. Normally when a service is fronted by a Load Balancer, the loadbalancer uses the information derived from the health endpoint to decide whether to route traffic to that instance of service or not. Spring Boot actuator provides Health Endpoint out of the box. If we add spring-boot-actuator dependency we can get the URI /actuator/health.
Posts
Resilience4j, the path beyond Hystrix
Introduction
In discussions of cloud-native applications or microservices, the theme that takes a center stage is Resiliency. Hystrix from Netflix OSS has been the go-to library for developers to implement resiliency patterns, in many cases, it’s integration with other application frameworks like Spring, Micronaut has made the developer life easier. However, Hystrix has been put into maintenance mode and Spring cloud 2020.0.0 (aka Ilford) has stopped its support for Hystrix. This is a huge change, what’s the migration path ahead, what is the alternative?
Posts
The Weekend Journal- Week-06
Resilience4j
This work I deep dive into resilience4j which is an alternative to Hystrix. Resilience4j is a lightweight fault tolerance library and a possible alternative to Hystrix. Resilience4j comes with following core modules -
resilience4j-circuitbreaker: Circuit breaking
resilience4j-ratelimiter
resilience4j-bulkhead
resilience4j-retry
resilience4j-timelimiter
resilience4j-cache
one can also stacked together combinations of different resiliency patterns. It also comes with spring-boot starter.
Posts
The Weekend Journal 1
Welcome to The Weekly Journal. Here I will try to compile link,blogposts etc which I read that week. This week I will start with a little look back on 2020.
2020 like everyone else I remained constantly worrying, but I did manage to read some books and try out few things as follows
12 week a year - I can say till now the most influencing blinks that I read.