Skip to content

Lapinskas/erlang_testtask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erlang_testtask

##Test task for erlang

How to test:

  1. PREREQUISITES
  • Erlang and rebar are installed
  • Copy access.keys file to 'priv' folder
  1. GET CODE
git clone https://github.com/Lapinskas/erlang_testtask.git
cd erlang_testtask
  1. GET DEPS
make deps
  1. COMPILE
make all
  1. LOAD KEYS
source priv/access.keys
  1. RUN SERVER
make server
  1. RUN CLIENT ( on another terminal from project folder )
make test
  1. TEST

8.1 Create record

    1> test_client:test_set("ABC","123").
    Test set: ok
    ok

8.2 Get record

    2> test_client:test_get("ABC").      
    Test get: ok
    Test Key: "ABC"
    Test Value: "123"
    ok

8.3 Use wrong key to get record

    3> test_client:test_get("Abc").
    Test get: not_found
    ok

Status:

  • A. Develop a Service

  • B. Create CloudFormation template

  • 1) The data at rest in DynamoDB is encrypted using AWS KMS service.

  • 2) Data bigger than 4K can be stored.

  • 3) Service exposes an API over TCP using serialized Google protocolbuffer messages as payload.

  • 4) Rebar (https://github.com/rebar/rebar) is used for building and creating deployments.

  • 5) Erlcloud (https://github.com/erlcloud/erlcloud.git) is used to access AWS services.

  • 6) A simple test-client is included with server which invokes requests over GPB / TCP interface to verify the Service functionality.

  • 7) Service is deployed using CloudFormation template into existing VPC network.

About

Test task for erlang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published