Skip to content

Commit f4f27e9

Browse files
authored
fix: add white fill to architecture images
make all texts in the image visible in dark mode
1 parent f852a39 commit f4f27e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/getting-started/tutorial/project-setup.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ A component is a grouping of related functionality encapsulated behind a well-de
4444

4545
The C4 model doesn't require you to use all four levels. The application you are going to build during this tutorial is quite simple. You can jump straight to the container diagram, which looks like this:
4646

47+
[.fill.white]
4748
image::images/container-diagram.png[]
4849

4950
The application consists of two containers: the user's web browser; and a Spring Boot web application. Regardless of whether you build the user interface with Hilla or Flow, the containers remain the same. However, if you zoom in on them, you'll see the components are slightly different. The web application container looks like this:
5051

52+
[.fill.white]
5153
image::images/component-diagram.png[]
5254

5355
The application layer consists of two system components: _Chat_; and _In-memory Storage_. The chat component exposes an Application Programming Interface (API) for the user interface to call, and a Service Provider Interface (SPI) for storing and retrieving messages. This makes it possible to plug in different storage mechanisms without changing the chat component itself. In this tutorial, all chat messages are stored in memory. However, you could easily plug in another component that instead stores the messages in, for example, a relational database. This way of splitting systems into smaller components with clearly defined interfaces (i.e., APIs and SPIs) is a good praxis when building Vaadin applications and can be applied to both the application layer and the presentation layer.

0 commit comments

Comments
 (0)