Posts

Showing posts with the label Dropwizard

Dropwizard AWS LocalStack Tutorial

Image
Dropwizard AWS LocalStack Tutorial Introduction         Dropwizard is one of the most popular frameworks used today for building microservices. I was looking for a simple Dropwizard AWS LocalStack Tutorial online, but there are a very few tutorials. Some are very tough to follow. Hence I decided to come up with a simple post on this topic.         In this tutorial, we will focus on creating a Dropwizard App and integrating it with AWS SQS(Simple Queue Service) and SNS(Simple Notification Service). Then we will make a SQS Queue to subscribe to a SNS Topic, publish a message on the topic and retrieve it on the SQS Queue. LocalStack         LocalStack is a fully functional local cloud stack. With LocalSatck, you can run your AWS Applications or Lambdas on your local machine without connecting to a remote cloud provider. To know more about LocalStack please visit their  website . I...

Dropwizard Sundial Scheduler Tutorial

Image
Dropwizard Sundial Scheduler Tutorial Introduction         The functionality of scheduling jobs is frequently used in many applications today. Sundial is a quartz fork.  dropwizard-sundial library makes it very easy to configure and integrate a job scheduler into a Dropwizard application. This blog post will give you a comprehensive overview of this functionality.         Sundial is a Lightweight Job Scheduling Framework for Java. Sundial makes adding scheduled jobs to your Java application very simple. All we have to do is define jobs, define triggers, and start the Sundial scheduler. For more details about it please refer to: Sundial GitHub page .         Dropwizard is one of the most popular and most used frameworks for building microservices. I am assuming that you have a Basic Knowledge of Dropwizard and have a Basic Dropwizard Application running in your machine. If not, please check my blog pos...

Send Email in Java

Image
Send Email in Java Introduction         Sending an email is one of the most important and most frequently used functionalities in a technology organization. A software developer should know how this is done. This post will give you a comprehensive overview of sending emails using Java mail libraries. This post will give you an overview of the following: Send a plain text email in HTML format. Create an attachment and send an email. Use an existing file as an attachment and send an email.  As RESTful web services are commonly used today, I will be using Dropwizard for building out the email functionality as RESTful APIs. Hence here are what I will be using in this post: Java mail libraries: To connect to email service provider, compose and send emails Gmail: Email service provider Dropwizard: For developing Email functionalities as RESTful web services         Dropwizard is one of the most popular and most used frameworks ...

Dropwizard Aerospike Tutorial

Image
Dropwizard Aerospike Tutorial Introduction         I was searching online for an end to end Dropwizard Aerospike Integration tutorial and I could not find even one. Dropwizard and Aerospike are being used extensively in many startups and other technology giants but there is not a single end to end tutorial online. Hence I decided to come up with this post. This post will give you a comprehensive overview of Dropwizard and Aerospike Integration. The use case that I am trying to address in this post is to call Aerospike from a RESTful Web Service. Aerospike can be used in multiple use cases, however in this post I am using it as a cache on top of a database so that I can retrieve the data that I frequently use, efficiently and much faster than retrieving it from the database. In this post, to keep things simple, I am not using a database instead I am creating and using a HashMap as my database.  ...