Category: Tutorials
![StepZen and Vaadin logo](https://blog.vaadin.com/hubfs/Testing%20a%20custom%20component.png)
Updated for 2024.
GraphQL has become a common alternative to REST as a way to provide data to modern web applications. They both solve the same problem, but GraphQL comes with a different set of trade-offs. It is designed to answer challenges pertinent to larger organizations, such as inter-team communication and development velocity.
Unlike REST, GraphQL puts more flexibility – and more work – into the hands of API client developers. And yet Java developers have the tools that make creating GraphQL clients easy and straightforward.
![Build an advanced chat app in Java with OpenAI chatbot integration. Learn how to use OpenAI's Chat API for intelligent, responsive bots.](https://blog.vaadin.com/hubfs/Happy%20path%20%281%29.png)
Building an OpenAI-powered chatbot in Java
Updated in August 2024. Want to build a better version of ChatGPT? Learn how to integrate OpenAI's Chat Completions API to add an intelligent chatbot to your Vaadin Flow chat application. Create a new chat app with OpenAI chatbot integration Using the service at start.vaadin.com, create a new ...
![Consuming REST Services from Java applications](https://blog.vaadin.com/hubfs/Consuming%20rest%20services%20from%20java%20aoos.png)
Consuming REST services from Java applications
Using REST services is still the de facto way of providing data to traditional front-end applications. They often act as a "public API" for third-party solutions like mobile apps or as a "persistence layer" for client-side web apps (React, Vue, etc.). Java is probably the most common platform for ...
![](https://blog.vaadin.com/hubfs/domain-driven-thumbnail-png.png)
DDD Part 3: Domain-Driven Design and the Hexagonal Architecture
This is the third part of our in-depth series on Domain-Driven Design (DDD). Part one discussed strategic domain-driven design and part two discussed tactical domain-driven design. Updated for 2023. In this article, we'll take a look at how to turn a domain model into working software - ...
![](https://blog.vaadin.com/hubfs/domain-driven-thumbnail-png.png)
DDD Part 1: Strategic Domain-Driven Design
This is the first part of our in-depth series on Domain-Driven Design (DDD). Part two discusses tactical DDD, whereas, in part three, you'll learn how to apply DDD to working software using Java and Vaadin. Updated for 2023. Domain-Driven Design (DDD) has been around since Eric Evans published his ...
![](https://blog.vaadin.com/hubfs/Deploying%20a%20Spring%20Boot%20app%20as%20a%20native%20GraalVM%20image%20with%20Docker.png)
Deploying a Spring Boot app as a native GraalVM image with Docker
In this final part of the Building an AI chatbot in Java series, we will deploy the Spring Boot AI chatbot application we've built as a GraalVM native image. Requirements The instructions in the article assume you are working with the Hilla Spring Boot application we've built in the series, but the ...
![](https://blog.vaadin.com/hubfs/Building%20a%20ChatGPT-based%20AI%20bot%20using%20Spring%20Boot%2c%20React%2c%20and%20Hilla.png)
Building a ChatGPT-based AI bot using Spring Boot, React, and Hilla
In this article, we'll build a custom AI chatbot application using Hilla, Spring Boot, React, OpenAI (ChatGPT), and Pinecone. The chatbot is designed to answer Vaadin Flow and Hilla development questions using up-to-date documentation as reference material. My earlier blog post details the concept. ...
![](https://blog.vaadin.com/hubfs/Enhancing%20ChatGPT%20with%20Prompt%20Engineering%20and%20Token%20Counting%20in%20Java.png)
Enhancing ChatGPT with Prompt Engineering and Token Counting in Java
This article is part three of the Building an AI chatbot in Java series, where we're building a custom AI chatbot application using Hilla, Spring Boot, React, OpenAI (ChatGPT), and Pinecone. The chatbot is designed to answer Vaadin Flow and Hilla development questions using up-to-date documentation ...
![](https://blog.vaadin.com/hubfs/Integrating%20Pinecone%20Vector%20Database%20into%20a%20Spring%20Boot%20Application.png)
Integrating Pinecone Vector Database into a Spring Boot Application
Dive into the process of integrating the Pinecone Vector database with a Spring Boot application using Java in this second installment of the Building an AI chatbot in Java series. Prerequisites The article assumes you have a Spring Boot application. The example project is a Spring Boot application ...
![](https://blog.vaadin.com/hubfs/Calling%20ChatGPT%20and%20OpenAI%20APIs%20in%20Spring%20Boot%20with%20Java.png)
Calling ChatGPT and OpenAI APIs in Spring Boot with Java
This article will guide you on integrating OpenAI APIs, such as ChatGPT, in your Spring Boot application. We will cover moderation, embedding, and chat completion requests. It is a part of our Building an AI chatbot in Java series. Prerequisites This tutorial assumes you already have a Spring Boot ...