juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Souza Vieira <marcelosou...@gmail.com>
Subject Re: Microservice API changes.
Date Sat, 24 Nov 2018 19:47:31 GMT
Hi.
1+
 It would be interesting to make it possible to use an external
configuration server. It is a standard for microsservice and really makes
it much easier when the system is in production.
I would give Juneau a server and create a server.

Marcelo

Em sáb, 24 de nov de 2018 17:37, Steve Blackmon <sblackmon@apache.org
escreveu:

> +1 this would be useful when adding resources whose configuration may vary
> at runtime.
>
> Bonus points if user code can reinitialize the microservice and rerun the
> setup step if conditions change
>
> On Sat, Nov 24, 2018, 12:33 PM James Bognar <jamesbognar@apache.org wrote:
>
>> Hi all,
>>
>> I'm going to do some refactoring in the Microservice APIs.
>>
>> Here are some of the changes I want to make (nothing should be breaking):
>>
>> 1) Add builders for the microservice classes.
>> Something like this:
>>
>> RestMicroservice.create().resources(RootResources.class).port(10000).build().start();
>>
>> 2) Allow the external config file to be entirely optional by allowing
>> you to define settings programmatically via the builder.  Default
>> behavior still uses the config file though.
>>
>> 3) Break up the projects like so:
>>  - juneau-microservice-core - Contains base Microservice class and
>> default console commands.
>>  - juneau-microservice-jetty - Contains RestMicroservice and
>> Jetty-related stuff.
>>  - juneau-microservice-springboot - Contains new microservice code from
>> Marcelo.
>>  - juneau-microservice-jetty-template - Template project using Jetty.
>>  - juneau-microservice-springboot-template - Template project using
>> Spring Boot.
>>
>

Mime
View raw message