title: Java PDF creator as a Web Service vs Library
body: <p>I want to use Java to create PDFs (as well as other documents) and I was thinking about using a web service to do so.  The source of data for these documents will reside in different places.  There will also be different callers to the service.</p>
  
  <p>One of the callers/clients of the service requires a quick response time so I am debating on not using a web service here and instead just creating a separate library and use it's objects vs calling a web service.</p>
  
  <p>The other callers/clients will not need a quick response, however there will be tons of requests from them, thus I am worried about that negatively impacting the caller/client which is dependent on a fast response.</p>
  
  <p>Are my worries for the caller which needs a quick response time unfounded?  I would not be as concerned if there were not much data exchange, however if the service returns a PDF (or other document) I could see that possibly taking a while if the file is big.</p>
  
  <p>The reason why I was hoping for a web service is to allow one place for code to live since there will be different callers.  I am open to the idea of just creating a library and having each calling application use the library if that would be a better approach. </p>