I have created a Project in Java which helps generate HTML's from an Excel Sheet & a template file. I am trying to understand, if I want external users to use this facility from an external service, then what should be the thought process to choose an infrastructure for setting up this service. By infrastructure I mean that, which one of the below things should I do:Setup a Server (Apache). Expose service as an API using POST request & Servlets.Convert this into a Java Script Based library and use client side processing power to generate the HTML's from the browser. (This will save the hassle of maintaining my own server)In short, just trying to understand if its right to choose a frontend technology for doing stuff which would primitively have been done in the background.Thanks...
Decision that drives use of a Front Technology like Javascript for server side tasks
java;javascript;api;server side;client side
Maybe the java solution is easily adaptable for Vaadin, which under the hood does a java-to-javascript conversion.However if you have a well-defined and working Java project, a conversion to JavaScript is feasible, and could be nicer. I would try to do the entire thing in the client and restrict the server communication, say using AJAX calls. That will be difficult enough.JavaScript and HTML DOM is cumbersome, so develop using small prototypes, and then integrate things in an entire application. Version control is life-saving.You did not give us any idea to the complexity of your application, or whether it lends itself to JavaScript.Personally I would go for java hosting, to ascertain delivering in time without sudden problems. In a second stage a pure JavaScript solution can be considered.Pluses for JS (=arguments you then need): less server load, better responsiveness, better GUI.