Developers Keep Learning

Welcome to Keep Learning, an inspiring online publication created by developers, for developers.

Follow publication

Member-only story

CODEX

Quarkus — MongoDB Integration

Evren Tan
Developers Keep Learning
4 min readMar 28, 2021

--

On one side we have supersonic, subatomic Java framework, Quarkus and on the other side cross-platform document oriented NoSql database, MongoDB. So, it must be fun to integrate these two platforms with each other and executes our application in a supersonic way.

Quarkus & MongoDB

What is Quarkus?

Quarkus is being developed by Red Hat in Java and it is a full-stack, Kubernetes-native Java application framework.

The best two functionalities that I like about Quarkus are;

  • It is a combination of imperative coding & reactive coding,pls read the following link how it combines both;
  • It has really fast boot time comparing with other frameworks

I will not mention about how to setup your first Quarkus project because there are plenty of informative examples in its website. In order to react these examples about Quarkus, pls follow https://quarkus.io link.

Quarkus & MongoDB Connection

I have my MongoDB image in my local Docker and run my MongoDB container from this image. As MongoDB driver is not implicitly embedded in Quarkus, I am using Panache library for the MongoDB connection.

First, add our db connection to our application.properties file. My MongoDB runs on 27017 port & my database name is enterprise.

Creating our Entity with Panache

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

--

--

Developers Keep Learning
Developers Keep Learning

Published in Developers Keep Learning

Welcome to Keep Learning, an inspiring online publication created by developers, for developers.

Evren Tan
Evren Tan

Written by Evren Tan

Software Crafter | VP of DevOps at Pointr | Community Lead of Türkiye Java Community | Java & DevOps Enthusiast | Sailor | Oliver Farmer

No responses yet

Write a response