{"id":21290128,"url":"https://github.com/michaelmerg/serverless-function-runtime-java","last_synced_at":"2025-07-11T14:32:10.613Z","repository":{"id":150792152,"uuid":"120577927","full_name":"michaelmerg/serverless-function-runtime-java","owner":"michaelmerg","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-25T18:29:06.000Z","size":74,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T04:41:18.584Z","etag":null,"topics":["functions-as-a-service","java","serverless","serverless-functions"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelmerg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-02-07T07:13:32.000Z","updated_at":"2018-11-04T12:11:02.000Z","dependencies_parsed_at":"2023-06-25T23:21:42.351Z","dependency_job_id":null,"html_url":"https://github.com/michaelmerg/serverless-function-runtime-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelmerg/serverless-function-runtime-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmerg%2Fserverless-function-runtime-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmerg%2Fserverless-function-runtime-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmerg%2Fserverless-function-runtime-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmerg%2Fserverless-function-runtime-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelmerg","download_url":"https://codeload.github.com/michaelmerg/serverless-function-runtime-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelmerg%2Fserverless-function-runtime-java/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833280,"owners_count":23670617,"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":["functions-as-a-service","java","serverless","serverless-functions"],"created_at":"2024-11-21T12:45:00.582Z","updated_at":"2025-07-11T14:32:10.602Z","avatar_url":"https://github.com/michaelmerg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless function runtime for Java\n\n[![Build Status](https://travis-ci.org/michaelmerg/serverless-function-runtime-java.svg?branch=master)](https://travis-ci.org/michaelmerg/serverless-function-runtime-java)\n\nJava 8 template for [OpenFaas](https://github.com/openfaas/faas)\n\n## Quick Start\n\nPull template from GitHub:\n\n```\n$ faas-cli template pull https://github.com/michaelmerg/serverless-function-runtime-java\n```\n\nCreate new function:\n\n```\n$ faas-cli new --lang java-gradle java-echo\n```\n\nBuild function:\n\n```\n$ faas-cli build -f java-echo.yml\n```\n\nDeploy function:\n\n```\n$ faas-cli deploy -f java-echo.yml\n```\n\nInvoke function:\n\n```\n$ faas-cli invoke java-echo\n```\n\n\n## Overview\n\nThere are two different supported handler interfaces. The basic request handler supports simple Java types or a POJO types as input and output. With the streaming request handler you can handle the input and output as byte streams.\n\n### Request handler\n\n```java\npublic class Handler implements RequestHandler\u003cString, String\u003e {\n\n  @Override\n  public String handle(String input, Context context) {\n\n    // Add function code here\n    return input;\n  }\n}\n```\n\n### Streaming request handler\n\n```Java\npublic class StreamingHandler implements StreamingRequestHandler {\n\n  @Override\n  public void handle(InputStream input, OutputStream output, Context context) {\n\n    // read input stream\n    // write output stream\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelmerg%2Fserverless-function-runtime-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelmerg%2Fserverless-function-runtime-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelmerg%2Fserverless-function-runtime-java/lists"}