DEV Community

Discussion on: Is file parsing a domain operation in DDD?

Collapse
 
marconicolodi profile image
Marco Nicolodi • Edited

So i think you should parse it using a service/utility class, call this class within your controller, and pass the returned user objects as an usual parameter to your application service class, which would orchestrate your use case without knowloadge about the file. Treat the file as a controller parameter/input, despites the fact that your framework probably doesnt parse it by default.