Skip to content

marcushellberg/hilla-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example Hilla microservice application

This example application demonstrates how to use Hilla to call microservices. Hilla follows a backends-for-frontends pattern, where each frontend has its own backend. The frontend is responsible for aggregating data from multiple services and presenting it to the user.

Hilla uses type-safe RPC calls to communicate between the frontend and backend.

The example consists of 3 applications:

  • user-service - A service that provides user data
  • order-service - A service that provides order data
  • hilla-app - The frontend application that aggregates data from the other services
graph TD
    A[Browser] -->|Type-safe RPC| B[Hilla App]
    B --> |REST| C[User Service]
    B --> |REST| D[Order Service]
Loading

Running the example

You can either run the example locally or in a Docker container.

  • Run the example locally by running the Spring Boot application in each folder.
  • Run the example in Docker by running docker-compose up (--build) in the root folder.

About

hilla-microservices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published