Inspiration

How to maintain the profit margin and keep the business running by optimizing the technical infrastructure in times of covid-19.

A local businessman approached us with a scenario in which number of request to his server is very limited in terms of server hit.

What it does

This application is deployed in a serverless container environment so that instance will get up and server the request on demand having a huge cost saving. This application demonstrates a smaller portion of the bigger system. The application part submitted here is the one which is majorly responsible for huge saving by using quarkus.

  1. Businessman's firm produces some electrical senors which need one time activation before use. This activation needs to be done in a very secure manner and as per local law to maintain high integrity and secrecy.
  2. Before delivery, firm sends an OTP to the dealer registered number. 3.The Firm, also send the sends the registered Yubikey with the delivery executive along with the sensors. 4.On arrival at the dealer location, delivery boy gives the Yuikey along with the sensors to the dealer. 5.Now dealer need to get the activation code from the firm to use the sensors. 6.Dealer will make a call to the Firm's API will the OTP he received and the YuiKey generated password. 7.On validation the of the request, firm's serverless system sends the secret code of all the sensors delivered. 8.Delivey executive will return back with the Yukibey. 9.No of API calls for the codes from the dealer is maximum 10-15 in a day given the production constraints.

The scenario is that this business's firm produces sensitive electrical sensors which he sells to the dealers who put it in their end user equipment for retail purchase. We take a use case in which a shopkeeper sell some hardware devices which require a secure code to start processing at very first time.This secure code will be validate at server but device sell count is low so it is wastage of money and resources to up server 24*7.

How we built it

We built this application as server less deployment app. Quarkus stack helped in avoiding the always running 24*7 server at the firm's location helping in huge cost saving .

  1. Quarkus native image generation helped us to quickly create the native image for new deployment.
  2. Quarkus optimized jpa , hibernate and other stack helped in quickly starting up the server. 3.Quarkus docker image is very easy to generate.

Challenges we ran into

  1. Native image building on the windows OS is a huge task. We need to setup linux system after spending days to get the windows setup worked. 2.Openshift container creation is very painful process which takes lot of time.

Accomplishments that we're proud of

  1. This was our first enterprise serverless app which we upgraded in just a few weeks.
  2. Saving the employment of many people in covid19 crisis by optimizing the core system of the firm and completely eliminating the always running servers through this serverless app. 3.This is also of the major part which saved a huge money as per of firm's cost cutting measures .

What we learned

  1. Quarkus :)
  2. How easy it is to create serverless app for java developers. We experienced this.
  3. How to have the faster startup and very less memory consumption. 4.How serverless can save money.

What's next for Crunchers

1.Educate and spread awarness of the Quarkus WOW factors within the java community.

  1. Help other companies and business to move to serverless without any user experience degradation and at the same time saving on the infra and server cos and get powered by Quarkus.

Built With

Share this project:

Updates