{"id":24598501,"url":"https://github.com/kikoveiga/feup-sdle","last_synced_at":"2026-05-18T22:04:48.509Z","repository":{"id":272163570,"uuid":"906350499","full_name":"kikoveiga/feup-sdle","owner":"kikoveiga","description":"Large Scale Distributed Systems (SDLE) Project (2024/2025): MSc in Informatics and Computing Engineering @ FEUP","archived":false,"fork":false,"pushed_at":"2025-01-12T15:40:51.000Z","size":8001,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T12:16:46.255Z","etag":null,"topics":["broker","distributed-systems","feup","feup-meic","feup-sdle","mongodb","polling","worker-threads","zeromq"],"latest_commit_sha":null,"homepage":"https://sigarra.up.pt/feup/en/ucurr_geral.ficha_uc_view?pv_ocorrencia_id=540679","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kikoveiga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-20T17:46:16.000Z","updated_at":"2025-01-12T15:40:54.000Z","dependencies_parsed_at":"2025-01-12T16:44:08.584Z","dependency_job_id":null,"html_url":"https://github.com/kikoveiga/feup-sdle","commit_stats":null,"previous_names":["kikoveiga/feup-sdle"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikoveiga%2Ffeup-sdle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikoveiga%2Ffeup-sdle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikoveiga%2Ffeup-sdle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kikoveiga%2Ffeup-sdle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kikoveiga","download_url":"https://codeload.github.com/kikoveiga/feup-sdle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244164217,"owners_count":20408881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["broker","distributed-systems","feup","feup-meic","feup-sdle","mongodb","polling","worker-threads","zeromq"],"created_at":"2025-01-24T12:16:52.059Z","updated_at":"2026-05-18T22:04:48.422Z","avatar_url":"https://github.com/kikoveiga.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDLE Assignment\n\nSDLE Assignment of group T07G14.\n\nGroup members:\n\n1. Bruno Machado (up201907715@up.pt)\n2. João Padrão (up202108766@up.pt)\n3. José Francisco Veiga (up202108753@up.pt)\n\n### [Video demo](https://www.youtube.com/watch?v=sn-efuW2-5E)\n\n## Introduction\n\n- This project, entitled **Shopping Lists on the Cloud**, centres on the implementation of a distributed system that uses conflict-free replicated data types ([CRDTs](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type)) to guarantee consistency between replicas in a shopping list management application. The application allows users to create, share and manage shopping lists collaboratively, even in offline-first scenarios.\n\n## Main Features\n\n- **CRDT implementation:** Use of CCounters to manage item quantities in a conflict-free way.\n\n- **Distributed architecture:** Based on ZeroMQ for robust communication between clients and servers, employing the [Paranoid Pirate Pattern](https://zguide.zeromq.org/docs/chapter4/) to increase fault tolerance. The server is composed of a broker and multiple workers. The broker is responsible for load balancing the clients' requests among the workers, which are responsible for processing them.\n\n- **Persistence and replication:** MongoDB is used to persist data on the server side, guaranteeing durability and allowing recovery after failures.\n\n- **Objective:** To demonstrate the viability of cloud-supported, conflict-free collaborative applications with minimal friction for the user.\n\n## Execution\n\nBelow are the instructions to build and run the project. This is mainly focused on Ubuntu, but the links below also provide instructions for other operating systems.\n\n### Prerequisites\n\nTo build and run the project, ensure the following software is installed:\n\n- **CMake** (version 3.30 or higher): you can download and install CMake from the [official website](https://cmake.org/download/).\n\n- **MongoDB**: Follow the instructions on the official website, [here](https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/) is a guide to install it on Ubuntu.\n\n- **MongoDB C++ Driver** (mongocxx and bsoncxx): [here](https://www.mongodb.com/docs/languages/cpp/cpp-driver/current/installation/linux/) is a guide to install it on Ubuntu. Make sure to install it with the Boost polyfill option.\n\n### Build Instructions\n\n- Clone the repository and navigate to the project directory:\n\n   ```bash\n   git clone \u003crepository_url\u003e\n   cd g14\n   ```\n\n- Init the submodules:\n\n   ```bash\n   git submodule update --init --recursive\n   ```\n\n- Build the project using CMake:\n\n   ```bash\n   cmake -S . -B build\n   cmake --build build\n   ```\n\n### Run Instructions\n\n- Start the MongoDB server:\n\n   ```bash\n   sudo systemctl start mongod\n   ```\n\n- Run the broker:\n\n   ```bash\n   cd build\n   ./main_broker\n   ```\n\n- Run the workers:\n\n   ```bash\n   ./main_worker\n   ```\n\n- Run the client:\n\n   ```bash\n   ./client\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkikoveiga%2Ffeup-sdle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkikoveiga%2Ffeup-sdle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkikoveiga%2Ffeup-sdle/lists"}