Application deals with Employee(emp_id: Int, name: String, department: String) objects. Following are the main functions
Enter employees via commandline. InputReader actor handles this function
EmployeeHandler handles the rest of the functionality
EmployeeHandler has dependency with EmployeeDbComp which deals with saving employee detains in the database. We are using
cassandra database to store employee records. CassandraEmployeeDbCompImpl handles cassandra related implementation
EmployeeHandler has dependency to UserServiceComp with uploads the employee to service via REST API. We have Spray based
UserServiceComp(SprayUserServiceCompImpl)
create keyspace cakez with replication = {'class':'SimpleStrategy','replication_factor':1};
create table employee(emp_id Int primary key, name text, department text);
create index name_index on employee(name);