doc-exports/docs/fg/umn/functiongraph_02_1005.html
Chen, Junjie dac566cf2f FG UMN 20230725 version
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-04-03 10:30:56 +00:00

40 lines
5.6 KiB
HTML

<a name="functiongraph_02_1005"></a><a name="functiongraph_02_1005"></a>
<h1 class="topictitle1">Concepts</h1>
<div id="body32001227"><div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section4880412123"><h4 class="sectiontitle">Function</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p1443142071918">Functions are code defined to handle events.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section15855142131814"><h4 class="sectiontitle">Event Source</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p5458154461918">An event source is a public cloud service or custom application that publishes events.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section12316118171810"><h4 class="sectiontitle">Synchronous Invocation</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p10305172313200">Clients wait for explicit responses to their requests from a function. Responses are returned only after the function is invoked.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section135316214188"><h4 class="sectiontitle">Asynchronous Invocation</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p5258154372017">Clients do not care about the function invocation results of their requests. After receiving a request, FunctionGraph puts it in a queue, returns a response, and processes other requests when there are idle resources.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section623011274184"><h4 class="sectiontitle">Trigger</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p18474752192015">A trigger is an event that triggers function execution.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section1265336171815"><h4 class="sectiontitle">Single-Instance Multi-Concurrency</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p8159142152218">The number of requests that can be concurrently processed by an instance.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section19972043131820"><h4 class="sectiontitle">Custom Images</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p12169174793110">You can directly package and upload container images. The platform then loads and starts these images to create functions.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section12272114871818"><h4 class="sectiontitle">Custom Function Execution</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p116023118317">You can customize scripts and files to execute functions.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section6578125291812"><h4 class="sectiontitle">Function Logs</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p423936193118">Logs generated during function invocation.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section683195814186"><h4 class="sectiontitle">Function Monitoring</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p54611513118">Monitoring information generated during function execution.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section15113220197"><h4 class="sectiontitle">Function Version</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p1368711526263">FunctionGraph allows you to publish one or more versions throughout the development, testing, and production processes to manage your function code. The code and environment variables of each version are saved as a snapshot. After the function code is published, modify settings when necessary.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section36774610194"><h4 class="sectiontitle">Function Alias</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p4688195272612">You can create an alias for a specific function version. To roll back to a previous version, use the corresponding alias to represent the version instead of modifying the function code.</p>
<p id="functiongraph_02_1005__en-us_topic_0000001212443732_p682761715276">Each function alias can be bound to a major version and an additional version for traffic shifting.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section779517105197"><h4 class="sectiontitle">Dependency Package</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p451915112275">FunctionGraph enables you to manage dependencies in a unified manner. You can upload dependencies from a local path, or through OBS if they are too large, and specify names for them.</p>
</div>
<div class="section" id="functiongraph_02_1005__en-us_topic_0000001212443732_section12609104354011"><h4 class="sectiontitle">Bootstrap File</h4><p id="functiongraph_02_1005__en-us_topic_0000001212443732_p18338202818811">The <strong id="functiongraph_02_1005__en-us_topic_0000001212443732_b1834061110339">bootstrap</strong> file is the startup file of an HTTP function. The HTTP function can only read <strong id="functiongraph_02_1005__en-us_topic_0000001212443732_b134611114333">bootstrap</strong> as the startup file name. If the file name is not <strong id="functiongraph_02_1005__en-us_topic_0000001212443732_b834717113334">bootstrap</strong>, the service cannot be started.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001540362886.html">Service Overview</a></div>
</div>
</div>