Im confused between deciding what you use for my actors. Lets say iam building a Employee Management system in which there are
1.Multiple employees.
2.Each of one is supposed come to work every day.
3.Will mark his attendance and
4.Then will be allotted tasks
The problem im facing is what should be an actor in my case
Option 1 -
I Make a EmployeesActor
(Note 's') - which will accept messages like EmployeePresentMessage
containing EmployeeId
(Information of which employee has marked attendance) and then will update the employee system's state.
Option 2 -
I Make a EmployeeActor class which will make 10 instances of itself (Depending upon the Total No of Employees in the Organization). So Now the messages like EmployeePresentMessage
WIll be delivered to the specific Instance / Object of the EmployeeActor class Which will update its state.