Skip to content

gavinking/ceylon-spring-boot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot - Ceylon

An example SpringBoot service written in Ceylon, demonstrating the use of discovery, gateway, feign client, jpa, dependency injection, etc.

This project is experimental and is being done for fun in my spare time. So dont worry if the microservices do not make sense or looks like a super engineering for just a few CRUD`s.

The projects were divided:

  • Gateway: Testing a single entry that do load balancing for services registered in the discovery.
  • Discovery: Test microservices be recorded and become available.
  • Foo: Just foo.
  • Bar: Just bar.
  • FooBar: Just foo and bar (test feign client, ribbon, etc).

Setup

Prerequisites

You'll need the following prerequisites to get started:

Starting the service

For each project theres a file run.ceylon

Right-Click ->  Run As -> Ceylon Java Application

It's possible to start the service in any order, but I would suggest to start first discovery service.

How to use the microservices

An important detail is that the services are not available at the same time that services are UP, this is due to the strategy used by the discovery that consist basically wait 3 beats. So do not be surprised if at first seem that the service was not available. The default standby time is 30 seconds per beat.

{
  "name" : "Any Name Here"
}
{
  "maximumPlaces" : 3
}
{
  "bar" : 1,
  "foo" : 1
}

Enjoy and please open issues if you have problems with configuration.

About

Try ceylon with spring-boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ceylon 100.0%