Skip to content

erangaeb/cakez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala cake pattern demo

Application functionality

Application deals with Employee(emp_id: Int, name: String, department: String) objects. Following are the main functions

1. Read employees

Enter employees via commandline. InputReader actor handles this function

2. Handler input employees

EmployeeHandler handles the rest of the functionality

Cake pattern dependencies

1. EmployeeDbComp

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

2. UserServiceComp

EmployeeHandler has dependency to UserServiceComp with uploads the employee to service via REST API. We have Spray based UserServiceComp(SprayUserServiceCompImpl)

Cassandra config

1. Create key space cakez
create keyspace cakez with replication = {'class':'SimpleStrategy','replication_factor':1};
2. Create table employee
create table employee(emp_id Int primary key, name text, department text);
3. Create index for name
create index name_index on employee(name);

About

Scala cake pattern example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages