Skip to content

Parallelcube/T-Services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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)    │   POSIX Queue (response)   │  (Worker)   │
│             │                            |             │
│             │       ┌────────────┐       |             │
│             ├───────│   Shared   ├───────│             │
│             │       │   Memory   │       |             │
└─────────────┘       └────────────┘       └─────────────┘

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

Parallelcube tutorials:

More UE4 Tutorials and gamedev

https://www.parallelcube.com/tutorials/

Support

Patreon: https://www.patreon.com/BYC

Ko-fi: https://ko-fi.com/cristianbarrio

Twitter: https://twitter.com/parallelcube

Instagram: https://www.instagram.com/parallelcube

Youtube: https://www.youtube.com/@ParallelCube

About

Tutorial services - python/cpp/rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published