doc-exports/docs/fg/umn/functiongraph_02_1001.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

22 lines
3.7 KiB
HTML

<a name="functiongraph_02_1001"></a><a name="functiongraph_02_1001"></a>
<h1 class="topictitle1">Event Functions</h1>
<div id="body32001227"><div class="section" id="functiongraph_02_1001__en-us_topic_0000001212603706_section792742781512"><h4 class="sectiontitle">Overview</h4><p id="functiongraph_02_1001__en-us_topic_0000001212603706_p1887343010152">FunctionGraph supports event functions. An event can trigger function execution. Generally, it is in JSON format. You can create an event to trigger your function through the cloud service platform or CodeArts IDE Online. All types of triggers supported by FunctionGraph can trigger event functions.</p>
<div class="note" id="functiongraph_02_1001__en-us_topic_0000001212603706_note20199249161019"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ol id="functiongraph_02_1001__en-us_topic_0000001212603706_ol112413435152"><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li17241443161510">On the function creation page, <strong id="functiongraph_02_1001__en-us_topic_0000001212603706_b892013983017">Function Type</strong> is set to <strong id="functiongraph_02_1001__en-us_topic_0000001212603706_b11554100123020">Event Function</strong> by default.</li><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li141482044152419">During testing, a function can be triggered by simply entering the specified event in JSON format.</li><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li6608191314346">You can also use triggers to trigger event functions.</li></ol>
</div></div>
</div>
<div class="section" id="functiongraph_02_1001__en-us_topic_0000001212603706_section1357253312150"><h4 class="sectiontitle">Advantages</h4><ul id="functiongraph_02_1001__en-us_topic_0000001212603706_ul10209533257"><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li135744955818">Easy single-node programming<p id="functiongraph_02_1001__en-us_topic_0000001212603706_p65361612903"><a name="functiongraph_02_1001__en-us_topic_0000001212603706_li135744955818"></a><a name="en-us_topic_0000001212603706_li135744955818"></a>You can edit event functions on FunctionGraph or upload code packages there and deploy them with just a few clicks. There is no need for you to care about function concurrency or fault rectification.</p>
</li><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li133174818589">High-performance, high-speed runtimes<p id="functiongraph_02_1001__en-us_topic_0000001212603706_p1362901184611"><a name="functiongraph_02_1001__en-us_topic_0000001212603706_li133174818589"></a><a name="en-us_topic_0000001212603706_li133174818589"></a>Event functions can be started, scaled, and called within milliseconds. Faults can be detected and rectified within seconds.</p>
</li><li id="functiongraph_02_1001__en-us_topic_0000001212603706_li255216244596">Complete tool chain<p id="functiongraph_02_1001__en-us_topic_0000001212603706_p211442911015"><a name="functiongraph_02_1001__en-us_topic_0000001212603706_li255216244596"></a><a name="en-us_topic_0000001212603706_li255216244596"></a>FunctionGraph provides comprehensive logging, tracing, debugging, and monitoring, allowing developers to roll out functions in just three steps.</p>
</li></ul>
</div>
<div class="section" id="functiongraph_02_1001__en-us_topic_0000001212603706_section4275114115154"><h4 class="sectiontitle">Restrictions</h4><p id="functiongraph_02_1001__en-us_topic_0000001212603706_p25391955153215">Event functions face event source restrictions. You need to comply with the function development rules of the function platform.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="functiongraph_02_1000.html">Function Types</a></div>
</div>
</div>