{"id":17781633,"url":"https://github.com/bylucasqueiroz/queue-server","last_synced_at":"2025-04-01T19:49:04.658Z","repository":{"id":259137700,"uuid":"871981186","full_name":"bylucasqueiroz/queue-server","owner":"bylucasqueiroz","description":"This project is an in-memory message queue system using gRPC in Go, inspired by AWS SQS.","archived":false,"fork":false,"pushed_at":"2024-11-17T23:19:42.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:15:16.531Z","etag":null,"topics":["go","golang","grpc","grpc-go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/bylucasqueiroz.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-10-13T13:36:22.000Z","updated_at":"2024-11-17T23:19:45.000Z","dependencies_parsed_at":"2024-10-22T22:59:59.642Z","dependency_job_id":"1123b8ee-c742-4cd7-bcdc-f886d126dbf5","html_url":"https://github.com/bylucasqueiroz/queue-server","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"ed9b33b17bc1ed02a6af74a0b2e695945c2639bd"},"previous_names":["bylucasqueiroz/queueapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bylucasqueiroz%2Fqueue-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bylucasqueiroz%2Fqueue-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bylucasqueiroz%2Fqueue-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bylucasqueiroz%2Fqueue-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bylucasqueiroz","download_url":"https://codeload.github.com/bylucasqueiroz/queue-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246706001,"owners_count":20820783,"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":["go","golang","grpc","grpc-go"],"created_at":"2024-10-27T04:03:48.510Z","updated_at":"2025-04-01T19:49:04.639Z","avatar_url":"https://github.com/bylucasqueiroz.png","language":"Go","readme":"# Queue Simulation using GRPC and Golang\n\nThis project implements a simplified, in-memory message queue system using gRPC in Go, inspired by AWS Simple Queue Service (SQS). The goal of the project is to create a basic task queue system where producers can send messages to a queue, consumers can retrieve those messages with a visibility timeout, and once a task is complete, the messages can be deleted from the queue.\n\n### Generate GRPC code by Proto\n\n``` bash\nprotoc --go_out=. --go-grpc_out=. --proto_path=. queue.proto\n```\n\n### Start the server\n``` bash\ngo run cmd/server/main.go\n```\n### Start the producer\n``` bash\ngo run cmd/producer/main.go\n```\n\n### Start the consumer\n``` bash\ngo run cmd/consumer/main.go\n```\n\n## SQLITE\n\n### Queue SQLite 3\n\nCreate a database named test.db using the following command:\n\n``` bash\nsqlite3 db/queue.db\n```\n\nThe command outputs the following:\n\n``` bash\nSQLite version 3.16.2 2017-01-06 16:32:41\nEnter \".help\" for usage hints.\nsqlite\u003e\n```\n\n### Check database list using the following command:\n\n``` bash\nsqlite\u003e .databases\n```\n\n### Type .exit to exit the CLI.\n\n``` bash\nsqlite\u003e .exit\n```\n\n### Run command ls and you will find the file database is created.\n\n``` bash\n$ ls /db\nqueue.db\n```\n\n## Table\n\n### Create messages table\n``` sql\nCREATE TABLE messages (\n   ID TEXT,\n   Body TEXT,\n   PRIMARY KEY(ID)\n);\n\n```\n\n### Create queues message\n``` sql\nCREATE TABLE queues (\n   ID TEXT,\n   Name TEXT,\n   PRIMARY KEY(ID)\n);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbylucasqueiroz%2Fqueue-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbylucasqueiroz%2Fqueue-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbylucasqueiroz%2Fqueue-server/lists"}