I need design suggestions regarding the module I need to develop in Java. The module will need to produce different kind of output files and load the files data in to the database. The module will generate output files by requesting third party library and server which expects request data in the form of input files.
The type and data of output files generate will depend upon the kind of request, for example, I will invoke specific function of API along with providing input files with compliance format, and the third party API will generate output files using the specified input files.
The client of this module will provide any ID based on that this module will prepare input files to communicate with third party API or server.
I want to ask what would be the approach to communicate with the client? I am thinking to develop module and then I will provide Jar file of the module to the client. Another approach can be that I can expose different webservices to client to communicate? Or any other suggestion for design would be very much
welcome. I need to think design in such way that it can scaled horizontally.