Skip to content

Parallelcube/T-Services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This repository contains the implementation of a service host-worker using different languages

┌─────────────┐   POSIX Queue (request)    ┌─────────────┐
│             ├───────────────────────────►│             │
│  Service A  │                            │  Service B  │
│   (Host)    │                            │  (Worker)   │
│             │◄───────────────────────────┤             │
└─────────────┘   POSIX Queue (response)   └─────────────┘

Current languages

  • C++
  • Python
  • Rust

Features

  • IPC communication using POSIX queues

Scripts

We have multiple scripts to build and test the different services

Python

  • runpython.sh : activate python virtual environment + Start service as host
#!/bin/bash
. ../venv/bin/activate
python3.11 ../python/main.py --host

C++

  • buildcpp.sh : Compile Cpp code
  • runcpp_host.sh : Start service host
#!/bin/bash
../cpp/build/host/cppservice
  • runcpp_worker.sh : Start service worker
#!/bin/bash
../cpp/build/worker/cppservice

Rust

  • buildrust.sh : Compile Rust code
  • runrust.sh : Start service as worker
#!/bin/bash
../rust/target/debug/rsservice

About

Tutorial services - python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published