Home » Tag Archives: Database

Tag Archives: Database

Reactive Relational Database Transactions

spring-interview-questions-answers

Spring Framework announced recently to ship with support for reactive transaction management.Let’s take an in-depth look at how this works for R2DBC, the reactive specification for SQL database access. Transaction Management is a pattern and not technology-specific. From that perspective, its properties and runtime behavior are a function of the implementing technology. TL; DR: From a database perspective, imperative and ...

Read More »

NoSql Databases: Cassandra vs Mongo vs Redis DB Comparison

java-interview-questions-answers

1. What are NoSql Databases? NoSql (Not only Sql) databases are non-relational databases that are horizontally scalable, persist semi or unstructured data and have flexible schemas. These databases support multiple data models such as key-value, document, column-family, graph based, in-memory etc. for managing and accessing data. NoSql databases are best suited for building modern applications, which require large data and ...

Read More »

Understanding H2 InMemory Database with Spring Boot

spring-interview-questions-answers

Introduction Basically the database setup involves several steps before we can use it through configured datasource in our application. This actually is required in case of actual project implementations. However, there are situations where we just need a POC to be done for something, and the whole database setup thing still becomes an obligation. Similarly, for unit tests, it would ...

Read More »

Derby Database Backup

java-interview-questions-answers

Abstract I have already posted a number of blogs about Derby: Multiple Derby Network Servers on the same Host Apache Derby Database Users and Permissions Integration Testing with Maven and an In-Memory Derby Database This wasn’t intended to be a series. But over the years I’ve been using Derby more and more. Recently, I started using Derby as my database ...

Read More »

Java: GraalVM Database Stream Performance

GraalVM is the new kid on the JVM block. It is an open-source Virtual Machine that is able to run many programming languages, such as Java, Rust and JavaScript, at the same time. GraalVM has also a new internal code optimizer pipeline that can improve performance significantly compared to other JVMs under some conditions. Learn how to reap the benefits ...

Read More »

Dealing with Micro-Service Oriented Architecture DATA (part 2)

This are my verbatim notes to the PEAT UK podcast: Hello there once again to another hot shot. My name is Peter Pilgrim, DevOps specialist, Java enterprise and platform engineer and Java Champion What’s the database architecture in a microservices application? In true independent microservices, they are designed and built to follow the Single Responsibility Principle (Robert Martin), which is ...

Read More »

MongoDB Tutorial for Beginners

1. Introduction to MongoDB In this post, we feature a comprehensive MongoDB Tutorial that integrates with a Java-based application. Whenever we read about NoSQL databases, we need to know why were they ever developed when SQL databases were working excellent. NoSQL foundations grew upon relaxed ACID (atomicity, consistency, isolation, durability) guarantees in favour of performance, scalability, flexibility and reduced complexity. ...

Read More »

Apache Derby Database Users and Permissions

Abstract Apache Derby is awesome! Especially in a Microservices environment where the data for services (may) shrink and not require a heartier RDBMS. Derby is awesome because it’s so easy to use, especially when it come to users and permissions – you don’t need any! But, it may be the case you want to create an application-level user with limited ...

Read More »

Work with Parallel Database Streams using Java 8

java-interview-questions-answers

What is a Parallel Database Stream? Read this post and learn how you can process data from a database in parallel using parallel streams and Speedment. Parallel streams can, under many circumstances, be significantly faster than the usual sequential streams. With the introduction of Java 8, we got the long awaited Stream library. One of the advantages with streams is that ...

Read More »