Multi-User-Domain / mud-jena

0 stars 0 forks source link

Moving Tomcat + Jersey to a new repository? #34

Closed calummackervoy closed 3 years ago

calummackervoy commented 3 years ago

What MUD Jena does now

I think this is all fine, and then

I think that this doesn't belong in the repository, but could be moved to its own one for providing a demo Java server which uses MUD-Jena

Your REST API using Jersey can be packaged as a .war file which is a standard, which would allow you to deploy it in a standard way under any servlet container like Tomcat or Grizzly or Jetty. Or a more modern approach is to package your application as a .jar file with a “main” and explicitly initialize an embedded servlet container like Jetty or Tomcat directly from your code. In this approach you buy simpler deployment but you of course lose sharing your servlet container with other web-apps.

calummackervoy commented 3 years ago

I've been wrestling with the question of whether the web-facing stuff is a concern which we should be moving to another repository (making this a library for using Apache Jena in a MUD-specific way, having another library to expose web server routes following the MUD spec, and another which is a demo deployment in Tomcat)

My current thoughts on that:

Interesting question whether we want to expose other functions like registering a Describer in endpoints. In the case of the describer they just need to input/output RDF so for some local Go service that's fine - but also in the case of the describer we're planning on doing front-end federation (so the client should ask any distant content servers themselves!)

calummackervoy commented 3 years ago

I'm wondering if actually this isn't an implementation of the MUD specification, and we want to move that to a new repository, with this one being Java application tools for using RDF and MUD concepts

calummackervoy commented 3 years ago

We had a call about this yesterday and decided that for now we're going to keep everything in one repository

The reasons for considering splitting into a different repository are for the future concerns of someone wanting to use MUD-Jena:

We decided it'd be better to "cross this bridge later" when the project repo is more mature