-
MongoDB Schemas in Java
Table of Contents Why MongoDB and Java are such good friendsThe missing schema of loosely typed systems Bringing schema back Example: Spring Boot sea temperature service Sea temperatures Weather reports Schemas Data access Creating our API Why not Spring Data? Java benefits Schema in one place Database pollution API input pollution Compile-time and …
-
Building REST APIs in Java with Spring Boot
Table of Contents How can Spring help?PrerequisitesCreating our appConnecting our databaseOur Book modelBook repositoryOur REST controllerCreateReadUpdateDeleteAdding DTOs and validationBookRequestBookResponseUpdating the controllerTesting the APIRun the APICreateReadUpdateDeleteConclusion REST has become the default choice for building web services, and for good reason. It’s …
-
JC-AI Newsletter #4
Table of Contents Previous: 14 days have passed and it’s time for a new batch of readings that could shape developments in the field of artificial intelligence. The current newsletter vol. 4 offers us a closer look at several different …
-
Queryable Encryption With Spring Data MongoDB: How to Query Encrypted Fields
Table of Contents Why Queryable Encryption?A quick look at Spring Data MongoDBUse case: HR system with encrypted fieldsSetting up the projectConfiguring dependencies and propertiesAdding mongodb-cryptApplication.yml configurationAccessing properties in the codeBuilding the application layersThe domain modelThe repositoryThe serviceThe controllerSetting up encryptionConfiguring …
-
Boosting Kafka Latency Performance by 3x with Zing JVM and AutoMQ
Table of Contents Why is Latency so Important to Kafka?Introduction of AutoMQIntroducing Azul Zing Builds of OpenJDKPerformance Test & ExplanationTest Environment ConfigurationLatency: Taming the TailCPU Utilization: Do More with LessFuture Outlook Why is Latency so Important to Kafka? The importance …
-
Taking Java Arrays to Another Dimension
Table of Contents What is a multidimensional array in Java?Declaring a multidimensional arrayMixing Bracket PositionsCreating a multidimensional arrayDefault values in arraysUnderstanding jagged arraysUnderstanding JVM bytecodes for array creationBytecode for arrays of primitivesBytecode for arrays of objectsBytecode for multidimensional arraysPerformance considerations …
-
AI Gives Time, Not Confidence: Developer Productivity Toolkit
Let’s be real – keeping up with the pace of software development today is intense. New frameworks pop up and the push for faster, better, and more secure code never stops. This article is all about cutting through the buzz and looking …
-
Managing MongoDB Database Changes Using Liquibase Pro
Table of Contents What is Liquibase?What is MongoDB?Setting up a local MongoDB instance on WindowsUse Liquibase with MongoDBPrerequisitesInstall supporting driversConnection configurationConnection testHands-on execution steps detailed1. Create project and add files2. Project structure in VS Code3. Lifecycle of Liquibase4. Verify the …
-
JC-AI Newsletter #3
The first and second newsletters introduced a 14-day cadence, and even though it is the holiday season for many of us, we are sticking to the promised period. The current newsletter vol.3, brings a collection of valuable articles focusing on …
-
Domain-Driven Design in Java: A Practical Guide
Table of Contents Understanding the “Airport” domainModeling the core Airport domain in JavaIdentifying aggregates and entitiesImplementing entities and value objectsBounded contexts and modularizationRepositories, domain services, and factoriesRepositoriesDomain servicesFactoriesApplication layer and integrationTesting and evolving the modelComplete DDD implementation source codeTesting scenarios …