<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://pchengma.com/feed.xml" rel="self" type="application/atom+xml" /><link href="http://pchengma.com/" rel="alternate" type="text/html" /><updated>2026-06-05T02:05:24+00:00</updated><id>http://pchengma.com/feed.xml</id><title type="html">Pengcheng Ma</title><subtitle>Personal Website</subtitle><author><name>pchengma</name></author><entry><title type="html">GSoC 2022: Certificate</title><link href="http://pchengma.com/2022/09/20/gsoc22-certificate.html" rel="alternate" type="text/html" title="GSoC 2022: Certificate" /><published>2022-09-20T00:00:00+00:00</published><updated>2022-09-20T00:00:00+00:00</updated><id>http://pchengma.com/2022/09/20/gsoc22-certificate</id><content type="html" xml:base="http://pchengma.com/2022/09/20/gsoc22-certificate.html"><![CDATA[<p>Congratulations!</p>

<p>Thanks, <a href="https://summerofcode.withgoogle.com/">Google Summer of Code</a>, <a href="https://www.apache.org/">The Apache Software Foundation</a>, and <a href="https://eventmesh.apache.org/">Apache EventMesh</a>!</p>

<p>Thanks, my mentor Mike Xue (PPMC of Apache EventMesh), Eason Chen (PPMC of Apache EventMesh), and all community members!</p>

<p>See this <a href="https://pchengma.github.io/2022/09/06/gsoc22.html">article</a> for more details of our work!</p>

<div>
  <p align="center">
    <img align="center" height="480" src="https://i.imgur.com/6WLfpHk.png" alt="gsoc22_certificate" />
  </p>
</div>
<p><br /><br /></p>]]></content><author><name>pchengma</name></author><summary type="html"><![CDATA[Congratulations!]]></summary></entry><entry><title type="html">GSoC 2022: Support Knative as Eventing Infra</title><link href="http://pchengma.com/2022/09/06/gsoc22.html" rel="alternate" type="text/html" title="GSoC 2022: Support Knative as Eventing Infra" /><published>2022-09-06T00:00:00+00:00</published><updated>2022-09-06T00:00:00+00:00</updated><id>http://pchengma.com/2022/09/06/gsoc22</id><content type="html" xml:base="http://pchengma.com/2022/09/06/gsoc22.html"><![CDATA[<div>
  <p align="center">
    <img align="left" height="120" src="https://i.imgur.com/S5WeDij.png" alt="gsoc_logo" />
    <img align="center" height="120" src="https://i.imgur.com/5EeswZi.png" alt="eventmesh_logo" />
    <img align="right" height="120" src="https://i.imgur.com/VZnWJiK.png" alt="apache_logo" />
  </p>
</div>
<p><br /><br /></p>

<p>Mentee: <a href="https://github.com/pchengma">Pengcheng Ma</a>, pchengma@link.cuhk.edu.hk</p>

<p>Mentor: <a href="https://github.com/xwm1992">Weiming Xue</a>, PPMC of Apache EventMesh, mikexue@apache.org</p>

<p>Project Website: <a href="https://eventmesh.apache.org/">https://eventmesh.apache.org/</a></p>

<p>Project GitHub: <a href="https://github.com/apache/incubator-eventmesh">https://github.com/apache/incubator-eventmesh</a></p>

<h2 id="about">About</h2>

<p>Knative Eventing provides tools for routing events from event producers to sinks, enabling developers to use an event-driven architecture with their applications. Apache EventMesh supports the CloudEvents specification, thus it could be integrated with Knative as an event broker.</p>

<h2 id="background">Background</h2>

<h3 id="apache-eventmesh">Apache EventMesh</h3>

<p><a href="https://github.com/apache/incubator-eventmesh">Apache EventMesh</a> is a dynamic cloud-native eventing infrastructure used to decouple the application and backend middleware layer, which supports a wide range of use cases that encompass complex multi-cloud, widely distributed topologies using diverse technology stacks.</p>

<h3 id="knative">Knative</h3>

<p><a href="https://knative.dev/docs/">Knative</a> is a platform-agnostic solution for running serverless deployments. <a href="https://github.com/knative/eventing">Knative Eventing</a>, one of Knative components, is a collection of APIs that enable developers to use an event-driven architecture with their applications. Developers can use these APIs to create components that route events from producers to consumers.</p>

<h2 id="contribution">Contribution</h2>
<h3 id="task">Task</h3>
<ul>
  <li>✅ Learn the details of the CloudEvents specification</li>
  <li>✅ Learn the basics of Knative Eventing and its communication protocol</li>
  <li>✅ Implement the EventMesh Knative-Connector module to deliver events to Knative</li>
</ul>

<p><em>Note: All planned tasks for GSoC’ 22 are done.</em></p>

<h3 id="deliverable">Deliverable</h3>
<ul>
  <li>✅ Source Code</li>
  <li>✅ Integration Test</li>
  <li>✅ Documentation</li>
</ul>

<p><em>Note: All deliverables for GSoC’ 22 are reviewed and approved by the community.</em></p>

<h3 id="issue">Issue</h3>
<ul>
  <li>Issue <a href="https://github.com/apache/incubator-eventmesh/issues/790">#790</a> (Assigned)</li>
  <li>Issue <a href="https://github.com/apache/incubator-eventmesh/issues/1187">#1187</a> (Status: Closed as Completed)</li>
  <li>Issue <a href="https://github.com/apache/incubator-eventmesh/issues/1213">#1213</a> (Status: Closed as Completed)</li>
</ul>

<h3 id="pull-request">Pull Request</h3>
<ul>
  <li>Pull Request <a href="https://github.com/apache/incubator-eventmesh/pull/1027">#1027</a> (Status: Merged)</li>
  <li>Pull Request <a href="https://github.com/apache/incubator-eventmesh/pull/1185">#1185</a> (Status: Merged)</li>
  <li>Pull Request <a href="https://github.com/apache/incubator-eventmesh/pull/1214">#1214</a> (Status: Merged)</li>
  <li>Pull Request <a href="https://github.com/apache/incubator-eventmesh/pull/1225">#1225</a> (Status: Merged)</li>
</ul>

<h2 id="design-and-implementation">Design and Implementation</h2>
<h3 id="architecture">Architecture</h3>

<p>The architecture of EventMesh-Connector-Knative is depicted as Figure 1. To connect EventMesh to Knative, we need to consider two event routing directions.</p>

<p>The first direction is from EventMesh to Knative (black line). User sends an request to EventMesh, which defines an event message header and asks EventMesh to publish (EventMesh-Connector-Knative/KnativeProducer) this event message to the Knative broker. Knative sink subscribes event message, which can be handled by Knative Eventing component.</p>

<p>The second direction is from Knative to EventMesh (red line). Knative source sends an event message to the Knative broker. EventMesh subscribes (EventMesh-Connector-Knative/KnativeConsumer) the event message accoding to given topic from the Knative broker. After that, the event message can be consumed by user.</p>

<div>
  <p align="center">
    <img align="center" height="480" src="https://i.imgur.com/tvbsomS.png" alt="architecture" />
  </p>
</div>
<p><br /><br /></p>

<h3 id="demo">Demo</h3>

<h4 id="preparation">Preparation</h4>
<p>We use  <a href="https://github.com/ruromero/cloudevents-player"><code class="language-plaintext highlighter-rouge">cloudevents-player</code></a> as Knative source and sink. We use an <a href="https://knative.dev/docs/getting-started/first-broker/">InMemoryChannel-backed Knative broker</a>. We clone the Apache EvnetMesh GitHub repository. All these installation steps are done on a cloud server.</p>

<h4 id="demo-01-publish-an-event-message-from-knative-and-subscribe-from-eventmesh">Demo-01: Publish an Event Message from Knative and Subscribe from EventMesh</h4>

<blockquote>
  <p>Step 1: Start an EventMesh Server</p>
</blockquote>

<div>
  <p align="center">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/Fn4elsYSM88" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
  </p>
</div>
<p><br /><br /></p>

<blockquote>
  <p>Step 2: Publish an Event Message from Knative</p>
</blockquote>

<div>
  <p align="center">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/OjGnnGEQXZM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
  </p>
</div>
<p><br /><br /></p>

<blockquote>
  <p>Step 3: Subscribe from EventMesh</p>
</blockquote>

<p>The event message with <code class="language-plaintext highlighter-rouge">data</code> field as <code class="language-plaintext highlighter-rouge">Hello CloudEvents!</code> will be printed on the console of EventMesh server.</p>

<div>
  <p align="center">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/rpp7TCxFgBM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
  </p>
</div>
<p><br /><br /></p>

<h4 id="demo-02-publish-an-event-message-from-eventmesh-and-subscribe-from-knative">Demo-02: Publish an Event Message from EventMesh and Subscribe from Knative</h4>

<blockquote>
  <p>Step 1: Publish an Event Message from EventMesh</p>
</blockquote>

<div>
  <p align="center">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/zPc3M37XmOE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
  </p>
</div>
<p><br /><br /></p>

<blockquote>
  <p>Step 2: Subscribe from Knative</p>
</blockquote>

<p>The event message with <code class="language-plaintext highlighter-rouge">data</code> field as <code class="language-plaintext highlighter-rouge">Hello Knative from EventMesh!</code> will be printed on the console.</p>

<div>
  <p align="center">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/slRFvGSe5NA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>
  </p>
</div>
<p><br /><br /></p>

<h2 id="conclusion">Conclusion</h2>

<p>In this project, we design and implement an EventMesh-Connector-Knative module that connects Apache EventMesh to Knative. In this way, Apache EventMesh obtains the ability of Knative and developers can directly use Apache EventMesh to enable Knative functions.</p>

<h2 id="future-work">Future Work</h2>

<p>In the future, we plan to add Apache EventMesh as a thrid-party broker to the Knative community. I will also keep contributing to the Apache EventMesh community and try to make EventMesh-Connector-Knative module meet the requirements in the production environment.</p>

<h2 id="acknowledgement">Acknowledgement</h2>
<p>This project is supported by the <a href="https://summerofcode.withgoogle.com/">Google Summer of Code</a> program and <a href="https://www.apache.org/">The Apache Software Foundation</a>. Firstly, I want to thank my mentor, Mr. Weiming Xue (Mike), who guides me through the whole project, especially but not limited to design, implementation, code review, and community bonding. Secondly, I want to thank Mr. <a href="https://github.com/qqeasonchen">Guangsheng Chen (Eason)</a>, PPMC of Apache EventMesh, who provides super helpful suggestions for the project review. Last but not least, I want to thank the Apache EventMesh community contributors for their inspirable issue and pull request activities.</p>]]></content><author><name>pchengma</name></author><summary type="html"><![CDATA[]]></summary></entry></feed>