{"id":23926446,"url":"https://github.com/systemcraftsman/functionia-serverless-demo","last_synced_at":"2025-07-14T07:32:58.955Z","repository":{"id":138643458,"uuid":"467665048","full_name":"SystemCraftsman/functionia-serverless-demo","owner":"SystemCraftsman","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-22T00:08:59.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T00:29:15.295Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/SystemCraftsman.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":"2022-03-08T20:26:14.000Z","updated_at":"2022-03-16T09:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a798946-a398-4af0-a182-5591b8bbd0f2","html_url":"https://github.com/SystemCraftsman/functionia-serverless-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SystemCraftsman/functionia-serverless-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemCraftsman%2Ffunctionia-serverless-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemCraftsman%2Ffunctionia-serverless-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemCraftsman%2Ffunctionia-serverless-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemCraftsman%2Ffunctionia-serverless-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SystemCraftsman","download_url":"https://codeload.github.com/SystemCraftsman/functionia-serverless-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SystemCraftsman%2Ffunctionia-serverless-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265255372,"owners_count":23735244,"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":[],"created_at":"2025-01-05T21:14:43.891Z","updated_at":"2025-07-14T07:32:58.946Z","avatar_url":"https://github.com/SystemCraftsman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Functionia\n\n![Funtionia-8](https://user-images.githubusercontent.com/10568159/159382570-fce98c6c-eb47-43d2-a4b4-9fc7d2f49c7f.jpg)\n\n## Prerequisites\n\n* Quay.io account\n* Quay.io repository and a robot account created in it.\n* `stern` tool installed.\n* A Strimzi cluster\n* Serverless Operator and Serving, Eventing, KnativeKafka enabled.\n* Bitmine courier deployed:\n\n```shell\ncd bitmine-courier \u0026\u0026 ./mvnw clean package -Dquarkus.kubernetes.deploy=true\n```\n\n## Instructions\n\n### Scene one:\n\nCreate quarkers miner clan function.\n\n```shell\nkn func create -l quarkus -t cloudevents quarkers-mining-service\n```\n\nDo the editings in the function.\n\nBuild and deploy function.\n\n```shell\ncd quarkers-mining-service\nkn func deploy --build\n```\n\nUpdate the function service.\n\n```shell\nkn service update quarkers-mining-service --concurrency-target=1\n```\n\nCall bitmine-courier with curl with 10 mine requests.\n\n```shell\ncurl -XGET http://bitmine-courier-functionia.apps-crc.testing/10\n```\n\nCheckout the pod count and logs.\n\n```shell\nstern -n functionia -c user-container quarkers-mining-service\n```\n\n### Scene two:\n\nDelete quarkers-kafka-source.\n\n```shell\nkn source kafka delete quarkers-kafka-source\n```\n\n```shell\nkn func create -l node -t cloudevents noders-mining-service\n```\n\nDo the editings in the function.\nBuild and deploy function.\n\n```shell\ncd noders-mining-service \u0026\u0026 kn func deploy --build\n```\n\nUpdate the function service.\n\n```shell\nkn service update noders-mining-service --concurrency-target=1\n```\n\nCreate the kafka channel.\nCreate the quarkers subscription.\nCreate the noders subscription.\n\nEdit bitmine-courier to produce to channel topic.\n\n```shell\noc set env dc/bitmine-courier TOPIC=knative-messaging-kafka.functionia.kafka-channel\n```\n\n```shell\noc rollout latest dc/bitmine-courier \n```\n\nCall bitmine-courier with curl with 50 mine requests.\n\n```shell\ncurl -XGET http://bitmine-courier-functionia.apps-crc.testing/50\n```\n\nCheckout the pod count and logs.\n\n```shell\nstern -n functionia -c user-container quarkers-mining-service\n```\n\n```shell\nstern -n functionia -c user-container noders-mining-service\n```\n\n\n### Scene three:\n\nDelete the Kafka channel.\n\n```shell\noc delete -f resources/2-channel-subscription/kafka-channel.yaml\n```\n\nCreate the broker.\n\n```shell\noc apply -f resources/3-broker-trigger/functionia-broker.yaml\n```\n\nCreate triggers for clans.\n\n```shell\noc apply -f resources/3-broker-trigger/quarkers-trigger.yaml\n```\n\n```shell\noc apply -f resources/3-broker-trigger/noders-trigger.yaml\n```\n\nEdit bitmine-courier to produce to channel topic.\n\n```shell\noc set env dc/bitmine-courier TOPIC=knative-broker-functionia-kafka-broker\n```\n\n```shell\noc rollout latest dc/bitmine-courier \n```\n\n\n### Scene four:\n\n```shell\nkn service update noders-mining-service --tag=noders-mining-service-00002=noders\n```\n\n```shell\nkn func deploy --build\n```\n\n```shell\nkn service update noders-mining-service  --tag=noders-mining-service-00003=wakanda\n```\n\n```shell\nkn service update noders-mining-service  --traffic noders=80,wakanda=20\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemcraftsman%2Ffunctionia-serverless-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystemcraftsman%2Ffunctionia-serverless-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystemcraftsman%2Ffunctionia-serverless-demo/lists"}