DEV Community

Discussion on: Domain-driven Design (DDD): File Structure

Collapse
 
ajoshi31 profile image
Atul Joshi • Edited

@stevescruz Here modules act as bounded context or same part of domain.

As I see in CreateAppointmentService

import IAppointmentsRepository from '@modules/appointments/repositories/IAppointmentsRepository';
import INotificationsRepository from '@modules/notifications/repositories/INotificationsRepository';

Is it ok to call different modules which act as the cross boundaries? I need to know without event driven how can we make cross boundary communication. Is it ok to duplicate code/entity for each domains/sub-domains?