Comparison between Karaf, Spring & NodeJS

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Comparison between Karaf, Spring & NodeJS

Serge Huber
Hi all,

Following an interesting discussion on how to promote Apache Karaf
with JB at ApacheCon and in Paris, I suggested to compare Karaf to
Spring in a grid format and publish it on the website.

I wanted to get the ball rolling so I started a Google Spreadsheet here:
https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing

By default commenting is allowed, so please don't hesitate. The
entries with a question mark are answers I don't have.

Also, the point is to make this as precise as possible, so it's quite
probable I made some mistakes because I might be biased towards Karaf
:)

cheers,
  Serge...
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

jbonofre
Hi Serge,

as discussed, it's a great idea.

Basically, I would propose the following:

- an example to compare code (especially with spring-boot) and show the
packaging/bootstrapping
- a documentation to evaluate based on your Google Spreadsheet.

Again, that's a great idea ;)

Regards
JB

On 05/10/2018 20:58, Serge Huber wrote:

> Hi all,
>
> Following an interesting discussion on how to promote Apache Karaf
> with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> Spring in a grid format and publish it on the website.
>
> I wanted to get the ball rolling so I started a Google Spreadsheet here:
> https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>
> By default commenting is allowed, so please don't hesitate. The
> entries with a question mark are answers I don't have.
>
> Also, the point is to make this as precise as possible, so it's quite
> probable I made some mistakes because I might be biased towards Karaf
> :)
>
> cheers,
>   Serge...
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

jbonofre
In reply to this post by Serge Huber
By the way, related to that, I would also update with the two main
improvements on which I'm working on:

1. Simplifying the way of creating Karaf custom distributions (immutable
like spring-boot does, or mutable) and be able to directly create
DockerFile and Docker image with the karaf-maven-plugin
2. The examples/features generation and karaf-boot paradigm

Regards
JB

On 05/10/2018 20:58, Serge Huber wrote:

> Hi all,
>
> Following an interesting discussion on how to promote Apache Karaf
> with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> Spring in a grid format and publish it on the website.
>
> I wanted to get the ball rolling so I started a Google Spreadsheet here:
> https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>
> By default commenting is allowed, so please don't hesitate. The
> entries with a question mark are answers I don't have.
>
> Also, the point is to make this as precise as possible, so it's quite
> probable I made some mistakes because I might be biased towards Karaf
> :)
>
> cheers,
>   Serge...
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

fpapon
In reply to this post by Serge Huber
Hi Serge,

Very good idea :)

Just a question, I'm sure about the NodeJS comparaison in the
spreadsheet, could you explain why you have in mind about this ?

regards,

François Papon
[hidden email]

Le 05/10/2018 à 22:58, Serge Huber a écrit :

> Hi all,
>
> Following an interesting discussion on how to promote Apache Karaf
> with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> Spring in a grid format and publish it on the website.
>
> I wanted to get the ball rolling so I started a Google Spreadsheet here:
> https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>
> By default commenting is allowed, so please don't hesitate. The
> entries with a question mark are answers I don't have.
>
> Also, the point is to make this as precise as possible, so it's quite
> probable I made some mistakes because I might be biased towards Karaf
> :)
>
> cheers,
>   Serge...

François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

jbonofre
In reply to this post by Serge Huber
Hi Serge,

can you give permission to me on the spreadsheet ? I would like to add
some points.

Thanks
Regards
JB

On 05/10/2018 20:58, Serge Huber wrote:

> Hi all,
>
> Following an interesting discussion on how to promote Apache Karaf
> with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> Spring in a grid format and publish it on the website.
>
> I wanted to get the ball rolling so I started a Google Spreadsheet here:
> https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>
> By default commenting is allowed, so please don't hesitate. The
> entries with a question mark are answers I don't have.
>
> Also, the point is to make this as precise as possible, so it's quite
> probable I made some mistakes because I might be biased towards Karaf
> :)
>
> cheers,
>   Serge...
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
In reply to this post by jbonofre
Thanks JB for the quick feedback. You're right that having code
comparisons would also be great. Unfortunately I have little
experience with Spring Boot so I didn't go down that path right away,
but I agree we should. Maybe I'll start a Google Doc with some tables
to prepare the flow of the comparison.

Regards,
  Serge...
On Fri, Oct 5, 2018 at 9:13 PM Jean-Baptiste Onofré <[hidden email]> wrote:

>
> By the way, related to that, I would also update with the two main
> improvements on which I'm working on:
>
> 1. Simplifying the way of creating Karaf custom distributions (immutable
> like spring-boot does, or mutable) and be able to directly create
> DockerFile and Docker image with the karaf-maven-plugin
> 2. The examples/features generation and karaf-boot paradigm
>
> Regards
> JB
>
> On 05/10/2018 20:58, Serge Huber wrote:
> > Hi all,
> >
> > Following an interesting discussion on how to promote Apache Karaf
> > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > Spring in a grid format and publish it on the website.
> >
> > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >
> > By default commenting is allowed, so please don't hesitate. The
> > entries with a question mark are answers I don't have.
> >
> > Also, the point is to make this as precise as possible, so it's quite
> > probable I made some mistakes because I might be biased towards Karaf
> > :)
> >
> > cheers,
> >   Serge...
> >
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
In reply to this post by fpapon
Hello François,

Concerning the comparison with NodeJS it is not mandatory but I
thought it would make sense to compare Karaf to popular technologies
to build web platforms. The idea is to position Karaf as a perfectly
acceptable alternative to those two other frameworks.

Regards,
  Serge...
On Fri, Oct 5, 2018 at 9:21 PM Francois Papon
<[hidden email]> wrote:

>
> Hi Serge,
>
> Very good idea :)
>
> Just a question, I'm sure about the NodeJS comparaison in the
> spreadsheet, could you explain why you have in mind about this ?
>
> regards,
>
> François Papon
> [hidden email]
>
> Le 05/10/2018 à 22:58, Serge Huber a écrit :
> > Hi all,
> >
> > Following an interesting discussion on how to promote Apache Karaf
> > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > Spring in a grid format and publish it on the website.
> >
> > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >
> > By default commenting is allowed, so please don't hesitate. The
> > entries with a question mark are answers I don't have.
> >
> > Also, the point is to make this as precise as possible, so it's quite
> > probable I made some mistakes because I might be biased towards Karaf
> > :)
> >
> > cheers,
> >   Serge...
>
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
In reply to this post by jbonofre
Hi JB,

You should have edit access now.

If anybody else wants to have access please don't hesitate to request
it on the document directly.

Regards,
  Serge...
On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]> wrote:

>
> Hi Serge,
>
> can you give permission to me on the spreadsheet ? I would like to add
> some points.
>
> Thanks
> Regards
> JB
>
> On 05/10/2018 20:58, Serge Huber wrote:
> > Hi all,
> >
> > Following an interesting discussion on how to promote Apache Karaf
> > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > Spring in a grid format and publish it on the website.
> >
> > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >
> > By default commenting is allowed, so please don't hesitate. The
> > entries with a question mark are answers I don't have.
> >
> > Also, the point is to make this as precise as possible, so it's quite
> > probable I made some mistakes because I might be biased towards Karaf
> > :)
> >
> > cheers,
> >   Serge...
> >
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
Hello everyo
I've just started a Google Document where I started a step-by-step
comparison of creating a REST service with Karaf and Spring Boot. I
used a guide from Spring boot as a starting point and copied all the
steps over from there. I haven't done the Karaf part because I'm sure
others can do it and I'm a little pressed for time this morning.

I think this is actually a fun exercice and a learning experience for
the Karaf community. It should hopefully help us onboard developers
that know the Spring Platform.

At the end of the document I have added a list of other examples that
could be detailed, but I need some help being inspired here. I think
we should as much as possible highlight the strengths of Karaf.

I think the most difficult part of this exercice is to avoid bashing
Spring because that is not really my objective. The objective is to
show integrators and developers considering Spring that there is a
strong (and in my opinion stronger) alternative in Apache Karaf.

Here's the link to the document, anyone can comment by default but if
you want to have edit permissions please don't hesitate to ask.
https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing

Regards,
  Serge...
On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:

>
> Hi JB,
>
> You should have edit access now.
>
> If anybody else wants to have access please don't hesitate to request
> it on the document directly.
>
> Regards,
>   Serge...
> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]> wrote:
> >
> > Hi Serge,
> >
> > can you give permission to me on the spreadsheet ? I would like to add
> > some points.
> >
> > Thanks
> > Regards
> > JB
> >
> > On 05/10/2018 20:58, Serge Huber wrote:
> > > Hi all,
> > >
> > > Following an interesting discussion on how to promote Apache Karaf
> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > > Spring in a grid format and publish it on the website.
> > >
> > > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> > >
> > > By default commenting is allowed, so please don't hesitate. The
> > > entries with a question mark are answers I don't have.
> > >
> > > Also, the point is to make this as precise as possible, so it's quite
> > > probable I made some mistakes because I might be biased towards Karaf
> > > :)
> > >
> > > cheers,
> > >   Serge...
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > [hidden email]
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

fpapon
Hi Serge,

I have many examples of code about REST with Karaf and I can make the exercice.

We could also add JPA and webapp code for Karaf part.

I also have an example about how to package an Angular webapp to be deployed on Karaf (thanks to JB ;) )

I can add them today or tomorrow.

Regards,

Francois



Envoyé depuis mon smartphone Samsung Galaxy.

-------- Message d'origine --------
De : Serge Huber <[hidden email]>
Date : 06/10/2018 11:31 (GMT+04:00)
Objet : Re: Comparison between Karaf, Spring & NodeJS

Hello everyo
I've just started a Google Document where I started a step-by-step
comparison of creating a REST service with Karaf and Spring Boot. I
used a guide from Spring boot as a starting point and copied all the
steps over from there. I haven't done the Karaf part because I'm sure
others can do it and I'm a little pressed for time this morning.

I think this is actually a fun exercice and a learning experience for
the Karaf community. It should hopefully help us onboard developers
that know the Spring Platform.

At the end of the document I have added a list of other examples that
could be detailed, but I need some help being inspired here. I think
we should as much as possible highlight the strengths of Karaf.

I think the most difficult part of this exercice is to avoid bashing
Spring because that is not really my objective. The objective is to
show integrators and developers considering Spring that there is a
strong (and in my opinion stronger) alternative in Apache Karaf.

Here's the link to the document, anyone can comment by default but if
you want to have edit permissions please don't hesitate to ask.
https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing

Regards,
  Serge...
On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:

>
> Hi JB,
>
> You should have edit access now.
>
> If anybody else wants to have access please don't hesitate to request
> it on the document directly.
>
> Regards,
>   Serge...
> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]> wrote:
> >
> > Hi Serge,
> >
> > can you give permission to me on the spreadsheet ? I would like to add
> > some points.
> >
> > Thanks
> > Regards
> > JB
> >
> > On 05/10/2018 20:58, Serge Huber wrote:
> > > Hi all,
> > >
> > > Following an interesting discussion on how to promote Apache Karaf
> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > > Spring in a grid format and publish it on the website.
> > >
> > > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> > >
> > > By default commenting is allowed, so please don't hesitate. The
> > > entries with a question mark are answers I don't have.
> > >
> > > Also, the point is to make this as precise as possible, so it's quite
> > > probable I made some mistakes because I might be biased towards Karaf
> > > :)
> > >
> > > cheers,
> > >   Serge...
> > >
> >
> > --
> > Jean-Baptiste Onofré
> > [hidden email]
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

fpapon
In reply to this post by Serge Huber
Hello Serge,

Ok, I see ;)

Thanks for the explanation.

Regards,

Francois



Envoyé depuis mon smartphone Samsung Galaxy.

-------- Message d'origine --------
De : Serge Huber <[hidden email]>
Date : 06/10/2018 10:46 (GMT+04:00)
Objet : Re: Comparison between Karaf, Spring & NodeJS

Hello François,

Concerning the comparison with NodeJS it is not mandatory but I
thought it would make sense to compare Karaf to popular technologies
to build web platforms. The idea is to position Karaf as a perfectly
acceptable alternative to those two other frameworks.

Regards,
  Serge...
On Fri, Oct 5, 2018 at 9:21 PM Francois Papon
<[hidden email]> wrote:

>
> Hi Serge,
>
> Very good idea :)
>
> Just a question, I'm sure about the NodeJS comparaison in the
> spreadsheet, could you explain why you have in mind about this ?
>
> regards,
>
> François Papon
> [hidden email]
>
> Le 05/10/2018 à 22:58, Serge Huber a écrit :
> > Hi all,
> >
> > Following an interesting discussion on how to promote Apache Karaf
> > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> > Spring in a grid format and publish it on the website.
> >
> > I wanted to get the ball rolling so I started a Google Spreadsheet here:
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >
> > By default commenting is allowed, so please don't hesitate. The
> > entries with a question mark are answers I don't have.
> >
> > Also, the point is to make this as precise as possible, so it's quite
> > probable I made some mistakes because I might be biased towards Karaf
> > :)
> >
> > cheers,
> >   Serge...
>
François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

jbonofre
In reply to this post by fpapon
Hi,

I have some WIP on CXF to have better REST support.

We also have @rest, @jpa, ... annotations in karaf-boot wip.

Regards
JB

On 06/10/2018 09:44, francois.papon wrote:

> Hi Serge,
>
> I have many examples of code about REST with Karaf and I can make the
> exercice.
>
> We could also add JPA and webapp code for Karaf part.
>
> I also have an example about how to package an Angular webapp to be
> deployed on Karaf (thanks to JB ;) )
>
> I can add them today or tomorrow.
>
> Regards,
>
> Francois
>
>
>
> Envoyé depuis mon smartphone Samsung Galaxy.
>
> -------- Message d'origine --------
> De : Serge Huber <[hidden email]>
> Date : 06/10/2018 11:31 (GMT+04:00)
> À : [hidden email]
> Objet : Re: Comparison between Karaf, Spring & NodeJS
>
> Hello everyo
> I've just started a Google Document where I started a step-by-step
> comparison of creating a REST service with Karaf and Spring Boot. I
> used a guide from Spring boot as a starting point and copied all the
> steps over from there. I haven't done the Karaf part because I'm sure
> others can do it and I'm a little pressed for time this morning.
>
> I think this is actually a fun exercice and a learning experience for
> the Karaf community. It should hopefully help us onboard developers
> that know the Spring Platform.
>
> At the end of the document I have added a list of other examples that
> could be detailed, but I need some help being inspired here. I think
> we should as much as possible highlight the strengths of Karaf.
>
> I think the most difficult part of this exercice is to avoid bashing
> Spring because that is not really my objective. The objective is to
> show integrators and developers considering Spring that there is a
> strong (and in my opinion stronger) alternative in Apache Karaf.
>
> Here's the link to the document, anyone can comment by default but if
> you want to have edit permissions please don't hesitate to ask.
> https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing
>
> Regards,
>   Serge...
> On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:
>>
>> Hi JB,
>>
>> You should have edit access now.
>>
>> If anybody else wants to have access please don't hesitate to request
>> it on the document directly.
>>
>> Regards,
>>   Serge...
>> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]>
> wrote:
>> >
>> > Hi Serge,
>> >
>> > can you give permission to me on the spreadsheet ? I would like to add
>> > some points.
>> >
>> > Thanks
>> > Regards
>> > JB
>> >
>> > On 05/10/2018 20:58, Serge Huber wrote:
>> > > Hi all,
>> > >
>> > > Following an interesting discussion on how to promote Apache Karaf
>> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
>> > > Spring in a grid format and publish it on the website.
>> > >
>> > > I wanted to get the ball rolling so I started a Google Spreadsheet
> here:
>> > >
> https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>> > >
>> > > By default commenting is allowed, so please don't hesitate. The
>> > > entries with a question mark are answers I don't have.
>> > >
>> > > Also, the point is to make this as precise as possible, so it's quite
>> > > probable I made some mistakes because I might be biased towards Karaf
>> > > :)
>> > >
>> > > cheers,
>> > >   Serge...
>> > >
>> >
>> > --
>> > Jean-Baptiste Onofré
>> > [hidden email]
>> > http://blog.nanthrax.net
>> > Talend - http://www.talend.com

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
I think this exercice might prove interesting to illustrate what might
be missing to have a strong on-boarding scenario. For me there is very
little needed to have a much stronger story than any other frameworks
!

And to prove to you I believe this I started another document today:
https://docs.google.com/document/d/1cZp-KymYOVgpBiHVPdLAYfKY81U_LzfqVYCIcVd2Mfg/edit?usp=sharing

The idea is to offer arguments to migrate to Karaf from Spring or
NodeJS. The list is by no means complete and feel free to comment or
request editing access to add more or correct any mistakes I might
have made.

I hope all of this is helpful. I still believe Karaf has a huge
potential that needs to be realized, it just needs to be properly
communicated.

Regards,
  Serge...
On Sat, Oct 6, 2018 at 10:48 AM Jean-Baptiste Onofré <[hidden email]> wrote:

>
> Hi,
>
> I have some WIP on CXF to have better REST support.
>
> We also have @rest, @jpa, ... annotations in karaf-boot wip.
>
> Regards
> JB
>
> On 06/10/2018 09:44, francois.papon wrote:
> > Hi Serge,
> >
> > I have many examples of code about REST with Karaf and I can make the
> > exercice.
> >
> > We could also add JPA and webapp code for Karaf part.
> >
> > I also have an example about how to package an Angular webapp to be
> > deployed on Karaf (thanks to JB ;) )
> >
> > I can add them today or tomorrow.
> >
> > Regards,
> >
> > Francois
> >
> >
> >
> > Envoyé depuis mon smartphone Samsung Galaxy.
> >
> > -------- Message d'origine --------
> > De : Serge Huber <[hidden email]>
> > Date : 06/10/2018 11:31 (GMT+04:00)
> > À : [hidden email]
> > Objet : Re: Comparison between Karaf, Spring & NodeJS
> >
> > Hello everyo
> > I've just started a Google Document where I started a step-by-step
> > comparison of creating a REST service with Karaf and Spring Boot. I
> > used a guide from Spring boot as a starting point and copied all the
> > steps over from there. I haven't done the Karaf part because I'm sure
> > others can do it and I'm a little pressed for time this morning.
> >
> > I think this is actually a fun exercice and a learning experience for
> > the Karaf community. It should hopefully help us onboard developers
> > that know the Spring Platform.
> >
> > At the end of the document I have added a list of other examples that
> > could be detailed, but I need some help being inspired here. I think
> > we should as much as possible highlight the strengths of Karaf.
> >
> > I think the most difficult part of this exercice is to avoid bashing
> > Spring because that is not really my objective. The objective is to
> > show integrators and developers considering Spring that there is a
> > strong (and in my opinion stronger) alternative in Apache Karaf.
> >
> > Here's the link to the document, anyone can comment by default but if
> > you want to have edit permissions please don't hesitate to ask.
> > https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing
> >
> > Regards,
> >   Serge...
> > On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:
> >>
> >> Hi JB,
> >>
> >> You should have edit access now.
> >>
> >> If anybody else wants to have access please don't hesitate to request
> >> it on the document directly.
> >>
> >> Regards,
> >>   Serge...
> >> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]>
> > wrote:
> >> >
> >> > Hi Serge,
> >> >
> >> > can you give permission to me on the spreadsheet ? I would like to add
> >> > some points.
> >> >
> >> > Thanks
> >> > Regards
> >> > JB
> >> >
> >> > On 05/10/2018 20:58, Serge Huber wrote:
> >> > > Hi all,
> >> > >
> >> > > Following an interesting discussion on how to promote Apache Karaf
> >> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> >> > > Spring in a grid format and publish it on the website.
> >> > >
> >> > > I wanted to get the ball rolling so I started a Google Spreadsheet
> > here:
> >> > >
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >> > >
> >> > > By default commenting is allowed, so please don't hesitate. The
> >> > > entries with a question mark are answers I don't have.
> >> > >
> >> > > Also, the point is to make this as precise as possible, so it's quite
> >> > > probable I made some mistakes because I might be biased towards Karaf
> >> > > :)
> >> > >
> >> > > cheers,
> >> > >   Serge...
> >> > >
> >> >
> >> > --
> >> > Jean-Baptiste Onofré
> >> > [hidden email]
> >> > http://blog.nanthrax.net
> >> > Talend - http://www.talend.com
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

cschneider
Hi Serge,

very nice. I think the migration reasons would be great to have on he karaf site.

Christian

Am Sa., 6. Okt. 2018 um 21:18 Uhr schrieb Serge Huber <[hidden email]>:
I think this exercice might prove interesting to illustrate what might
be missing to have a strong on-boarding scenario. For me there is very
little needed to have a much stronger story than any other frameworks
!

And to prove to you I believe this I started another document today:
https://docs.google.com/document/d/1cZp-KymYOVgpBiHVPdLAYfKY81U_LzfqVYCIcVd2Mfg/edit?usp=sharing

The idea is to offer arguments to migrate to Karaf from Spring or
NodeJS. The list is by no means complete and feel free to comment or
request editing access to add more or correct any mistakes I might
have made.

I hope all of this is helpful. I still believe Karaf has a huge
potential that needs to be realized, it just needs to be properly
communicated.

Regards,
  Serge...
On Sat, Oct 6, 2018 at 10:48 AM Jean-Baptiste Onofré <[hidden email]> wrote:
>
> Hi,
>
> I have some WIP on CXF to have better REST support.
>
> We also have @rest, @jpa, ... annotations in karaf-boot wip.
>
> Regards
> JB
>
> On 06/10/2018 09:44, francois.papon wrote:
> > Hi Serge,
> >
> > I have many examples of code about REST with Karaf and I can make the
> > exercice.
> >
> > We could also add JPA and webapp code for Karaf part.
> >
> > I also have an example about how to package an Angular webapp to be
> > deployed on Karaf (thanks to JB ;) )
> >
> > I can add them today or tomorrow.
> >
> > Regards,
> >
> > Francois
> >
> >
> >
> > Envoyé depuis mon smartphone Samsung Galaxy.
> >
> > -------- Message d'origine --------
> > De : Serge Huber <[hidden email]>
> > Date : 06/10/2018 11:31 (GMT+04:00)
> > À : [hidden email]
> > Objet : Re: Comparison between Karaf, Spring & NodeJS
> >
> > Hello everyo
> > I've just started a Google Document where I started a step-by-step
> > comparison of creating a REST service with Karaf and Spring Boot. I
> > used a guide from Spring boot as a starting point and copied all the
> > steps over from there. I haven't done the Karaf part because I'm sure
> > others can do it and I'm a little pressed for time this morning.
> >
> > I think this is actually a fun exercice and a learning experience for
> > the Karaf community. It should hopefully help us onboard developers
> > that know the Spring Platform.
> >
> > At the end of the document I have added a list of other examples that
> > could be detailed, but I need some help being inspired here. I think
> > we should as much as possible highlight the strengths of Karaf.
> >
> > I think the most difficult part of this exercice is to avoid bashing
> > Spring because that is not really my objective. The objective is to
> > show integrators and developers considering Spring that there is a
> > strong (and in my opinion stronger) alternative in Apache Karaf.
> >
> > Here's the link to the document, anyone can comment by default but if
> > you want to have edit permissions please don't hesitate to ask.
> > https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing
> >
> > Regards,
> >   Serge...
> > On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:
> >>
> >> Hi JB,
> >>
> >> You should have edit access now.
> >>
> >> If anybody else wants to have access please don't hesitate to request
> >> it on the document directly.
> >>
> >> Regards,
> >>   Serge...
> >> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]>
> > wrote:
> >> >
> >> > Hi Serge,
> >> >
> >> > can you give permission to me on the spreadsheet ? I would like to add
> >> > some points.
> >> >
> >> > Thanks
> >> > Regards
> >> > JB
> >> >
> >> > On 05/10/2018 20:58, Serge Huber wrote:
> >> > > Hi all,
> >> > >
> >> > > Following an interesting discussion on how to promote Apache Karaf
> >> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
> >> > > Spring in a grid format and publish it on the website.
> >> > >
> >> > > I wanted to get the ball rolling so I started a Google Spreadsheet
> > here:
> >> > >
> > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
> >> > >
> >> > > By default commenting is allowed, so please don't hesitate. The
> >> > > entries with a question mark are answers I don't have.
> >> > >
> >> > > Also, the point is to make this as precise as possible, so it's quite
> >> > > probable I made some mistakes because I might be biased towards Karaf
> >> > > :)
> >> > >
> >> > > cheers,
> >> > >   Serge...
> >> > >
> >> >
> >> > --
> >> > Jean-Baptiste Onofré
> >> > [hidden email]
> >> > http://blog.nanthrax.net
> >> > Talend - http://www.talend.com
>
> --
> Jean-Baptiste Onofré
> [hidden email]
> http://blog.nanthrax.net
> Talend - http://www.talend.com


--
--
Christian Schneider

http://www.liquid-reality.de

Computer Scientist

Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Serge Huber
Hello Christian,

Thanks, that was my idea was to produce some content that we could put
up on the website, but of course I wanted to first get feedback and
improvements from the community first.

Regards,
  Serge...
On Sun, Oct 7, 2018 at 8:47 AM Christian Schneider
<[hidden email]> wrote:

>
> Hi Serge,
>
> very nice. I think the migration reasons would be great to have on he karaf site.
>
> Christian
>
> Am Sa., 6. Okt. 2018 um 21:18 Uhr schrieb Serge Huber <[hidden email]>:
>>
>> I think this exercice might prove interesting to illustrate what might
>> be missing to have a strong on-boarding scenario. For me there is very
>> little needed to have a much stronger story than any other frameworks
>> !
>>
>> And to prove to you I believe this I started another document today:
>> https://docs.google.com/document/d/1cZp-KymYOVgpBiHVPdLAYfKY81U_LzfqVYCIcVd2Mfg/edit?usp=sharing
>>
>> The idea is to offer arguments to migrate to Karaf from Spring or
>> NodeJS. The list is by no means complete and feel free to comment or
>> request editing access to add more or correct any mistakes I might
>> have made.
>>
>> I hope all of this is helpful. I still believe Karaf has a huge
>> potential that needs to be realized, it just needs to be properly
>> communicated.
>>
>> Regards,
>>   Serge...
>> On Sat, Oct 6, 2018 at 10:48 AM Jean-Baptiste Onofré <[hidden email]> wrote:
>> >
>> > Hi,
>> >
>> > I have some WIP on CXF to have better REST support.
>> >
>> > We also have @rest, @jpa, ... annotations in karaf-boot wip.
>> >
>> > Regards
>> > JB
>> >
>> > On 06/10/2018 09:44, francois.papon wrote:
>> > > Hi Serge,
>> > >
>> > > I have many examples of code about REST with Karaf and I can make the
>> > > exercice.
>> > >
>> > > We could also add JPA and webapp code for Karaf part.
>> > >
>> > > I also have an example about how to package an Angular webapp to be
>> > > deployed on Karaf (thanks to JB ;) )
>> > >
>> > > I can add them today or tomorrow.
>> > >
>> > > Regards,
>> > >
>> > > Francois
>> > >
>> > >
>> > >
>> > > Envoyé depuis mon smartphone Samsung Galaxy.
>> > >
>> > > -------- Message d'origine --------
>> > > De : Serge Huber <[hidden email]>
>> > > Date : 06/10/2018 11:31 (GMT+04:00)
>> > > À : [hidden email]
>> > > Objet : Re: Comparison between Karaf, Spring & NodeJS
>> > >
>> > > Hello everyo
>> > > I've just started a Google Document where I started a step-by-step
>> > > comparison of creating a REST service with Karaf and Spring Boot. I
>> > > used a guide from Spring boot as a starting point and copied all the
>> > > steps over from there. I haven't done the Karaf part because I'm sure
>> > > others can do it and I'm a little pressed for time this morning.
>> > >
>> > > I think this is actually a fun exercice and a learning experience for
>> > > the Karaf community. It should hopefully help us onboard developers
>> > > that know the Spring Platform.
>> > >
>> > > At the end of the document I have added a list of other examples that
>> > > could be detailed, but I need some help being inspired here. I think
>> > > we should as much as possible highlight the strengths of Karaf.
>> > >
>> > > I think the most difficult part of this exercice is to avoid bashing
>> > > Spring because that is not really my objective. The objective is to
>> > > show integrators and developers considering Spring that there is a
>> > > strong (and in my opinion stronger) alternative in Apache Karaf.
>> > >
>> > > Here's the link to the document, anyone can comment by default but if
>> > > you want to have edit permissions please don't hesitate to ask.
>> > > https://docs.google.com/document/d/1e4vvXhTNMaAbb7UgDSgmRjvVHp_nm981ztw33k0kHN8/edit?usp=sharing
>> > >
>> > > Regards,
>> > >   Serge...
>> > > On Sat, Oct 6, 2018 at 8:47 AM Serge Huber <[hidden email]> wrote:
>> > >>
>> > >> Hi JB,
>> > >>
>> > >> You should have edit access now.
>> > >>
>> > >> If anybody else wants to have access please don't hesitate to request
>> > >> it on the document directly.
>> > >>
>> > >> Regards,
>> > >>   Serge...
>> > >> On Sat, Oct 6, 2018 at 6:18 AM Jean-Baptiste Onofré <[hidden email]>
>> > > wrote:
>> > >> >
>> > >> > Hi Serge,
>> > >> >
>> > >> > can you give permission to me on the spreadsheet ? I would like to add
>> > >> > some points.
>> > >> >
>> > >> > Thanks
>> > >> > Regards
>> > >> > JB
>> > >> >
>> > >> > On 05/10/2018 20:58, Serge Huber wrote:
>> > >> > > Hi all,
>> > >> > >
>> > >> > > Following an interesting discussion on how to promote Apache Karaf
>> > >> > > with JB at ApacheCon and in Paris, I suggested to compare Karaf to
>> > >> > > Spring in a grid format and publish it on the website.
>> > >> > >
>> > >> > > I wanted to get the ball rolling so I started a Google Spreadsheet
>> > > here:
>> > >> > >
>> > > https://docs.google.com/spreadsheets/d/1Js5qTXXugEOsp-5kUYoUbCKP1xt1dUx8efWZcGbm6C4/edit?usp=sharing
>> > >> > >
>> > >> > > By default commenting is allowed, so please don't hesitate. The
>> > >> > > entries with a question mark are answers I don't have.
>> > >> > >
>> > >> > > Also, the point is to make this as precise as possible, so it's quite
>> > >> > > probable I made some mistakes because I might be biased towards Karaf
>> > >> > > :)
>> > >> > >
>> > >> > > cheers,
>> > >> > >   Serge...
>> > >> > >
>> > >> >
>> > >> > --
>> > >> > Jean-Baptiste Onofré
>> > >> > [hidden email]
>> > >> > http://blog.nanthrax.net
>> > >> > Talend - http://www.talend.com
>> >
>> > --
>> > Jean-Baptiste Onofré
>> > [hidden email]
>> > http://blog.nanthrax.net
>> > Talend - http://www.talend.com
>
>
>
> --
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Computer Scientist
> http://www.adobe.com
>
Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

Steinar Bang
In reply to this post by Serge Huber
>>>>> Serge Huber <[hidden email]>:

> Hello everyo
> I've just started a Google Document where I started a step-by-step
> comparison of creating a REST service with Karaf and Spring Boot. I
> used a guide from Spring boot as a starting point and copied all the
> steps over from there. I haven't done the Karaf part because I'm sure
> others can do it and I'm a little pressed for time this morning.

Here's a code example of setting up a Jersey REST service in karaf:
 https://github.com/steinarb/jersey-demo

It defines an OSGi service in the bundle jerseyinkaraf.servicedef,
implements the service with a DS component in the bundle
jerseyinkaraf.services.

Then it creates a web whiteboard DS component that implements a Servlet
service based on the Jersey servlet container.  In that DS component, it
does a little magic to connect the Jersey resources to OSGi services.
Basically this init() method makes it possible to have the OSGi services
injected into the Jersey resources when Jersey creates them:
 https://github.com/steinarb/jersey-demo/blob/master/jerseyinkaraf.webapi/src/main/java/no/priv/bang/demos/jerseyinkaraf/webapi/CounterServiceServlet.java#L54

A Jersey resource with an OSGi service injection looks like this:
 https://github.com/steinarb/jersey-demo/blob/master/jerseyinkaraf.webapi/src/main/java/no/priv/bang/demos/jerseyinkaraf/webapi/resources/CounterResource.java#L28

The jerseyinkaraf.webgui bundle contains a DS component that creates a
web whiteboard Servlet service that defines a simple web GUI for the
counter service.

The top POM also creates and attaches a feature.xml file including all
of the bundles' feature repositories.

Reply | Threaded
Open this post in threaded view
|

Re: Comparison between Karaf, Spring & NodeJS

jbonofre
Hi Steinar,

I think it would be great to have such example in the Karaf ones.

Mind to create a PR ?

Thanks
Regards
JB

On 07/10/2018 12:53, Steinar Bang wrote:

>>>>>> Serge Huber <[hidden email]>:
>
>> Hello everyo
>> I've just started a Google Document where I started a step-by-step
>> comparison of creating a REST service with Karaf and Spring Boot. I
>> used a guide from Spring boot as a starting point and copied all the
>> steps over from there. I haven't done the Karaf part because I'm sure
>> others can do it and I'm a little pressed for time this morning.
>
> Here's a code example of setting up a Jersey REST service in karaf:
>  https://github.com/steinarb/jersey-demo
>
> It defines an OSGi service in the bundle jerseyinkaraf.servicedef,
> implements the service with a DS component in the bundle
> jerseyinkaraf.services.
>
> Then it creates a web whiteboard DS component that implements a Servlet
> service based on the Jersey servlet container.  In that DS component, it
> does a little magic to connect the Jersey resources to OSGi services.
> Basically this init() method makes it possible to have the OSGi services
> injected into the Jersey resources when Jersey creates them:
>  https://github.com/steinarb/jersey-demo/blob/master/jerseyinkaraf.webapi/src/main/java/no/priv/bang/demos/jerseyinkaraf/webapi/CounterServiceServlet.java#L54
>
> A Jersey resource with an OSGi service injection looks like this:
>  https://github.com/steinarb/jersey-demo/blob/master/jerseyinkaraf.webapi/src/main/java/no/priv/bang/demos/jerseyinkaraf/webapi/resources/CounterResource.java#L28
>
> The jerseyinkaraf.webgui bundle contains a DS component that creates a
> web whiteboard Servlet service that defines a simple web GUI for the
> counter service.
>
> The top POM also creates and attaches a feature.xml file including all
> of the bundles' feature repositories.
>

--
Jean-Baptiste Onofré
[hidden email]
http://blog.nanthrax.net
Talend - http://www.talend.com