In this post, we’ll learn how to create PDF document from HTML using Puppeteer. We’ll also look at a Serverless solution using AWS Lambda. This solution can run on most public clouds and on premises with minor or no modifications.

Prerequisite:

You must be familiar with NodeJS & ES6 to follow along the code examples.
You must be familiar with AWS Lambda & AWS SAM to follow the AWS based Serverless example.

How do you generate PDF?


This post covers

  • What is Quarkus?
  • Getting started with Quarkus
  • What is native executable?
  • Building native executable from Java using Quarkus
  • Startup time difference for Jar and native executables
  • Hot code replacement for Java (For me this is one of the biggest USP of the framework)

What is Quarkus?

Quarkus is a full-stack, Kubernetes-native Java framework made for Java virtual machines (JVMs) and native compilation, optimizing Java specifically for containers and enabling it to become an effective platform for serverless, cloud, and Kubernetes environments.

Getting started with Quarkus

You would need to have Java 8 or Java 11 installed along with Maven to get started with Quarkus.

Create a Boilerplate REST project


In this post, we start with a brief introduction to GraphQL and its common industry accepted usage pattern as BFFs(Backends For Frontends). Can it be used beyond that? I would focus around the below questions

  • What is GraphQL?
  • Do I need to use GraphQL?
  • Can GraphQL be used beyond Backends For Frontends(BFFs)?

Basic knowledge of REST is a prerequisite for understanding the concepts in this post.

What is GraphQL?

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. So there are 2 components to this. A GraphQL server and a GraphQL client. Both of…


In this post, we’ll learn how to build and deploy a simple HelloWorld SpringBoot web app on a DigitalOcean Droplets (Virtual Machine). We’ll start by creating a SpringBoot web app, package that into a fat JAR (You can skip this step, if are familiar with SpringBoot). After this, we’ll create a systemd service file for running the web app. Then we create a Droplet, connect to that using SSH, configure the Droplet to run SpringBoot App, upload the artifacts and run and test our SpringBoot web app. Finally we clean up the resources.

Note: Bela is my friend and in…

GSSwain

Technology enthusiast, learner, builder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store