<p>So, i am thinking to create a small pet project and one of the main parts of it would be to receive some http notifications from various services, parse these notifications, save some data, then forward them to other http urls that subscribed to get them(let's say a huge number here).</p>
<p>Now, i know there are 3rd-party push services out there that can ease this work for me, but if i would like to implement this myself in go as an excercise, how would i go about it, any pointers related to the general workflow?</p>
<hr/>**评论:**<br/><br/>ZetaHunter: <pre><p>What you are basically talking about I guess is web hooks? You would probably setup an http server with an endpoint that would accept POST with the notification and then check against your data store for subscribers and then just send it on to those subscribers.</p>
<p>I don't really have any experience but have some interest in this so will subscribe for further comments.</p></pre>tmornini: <pre><blockquote>
<p>an http server with an endpoint that would accept POST</p>
</blockquote>
<p>Or PUTs to avoid duplicate notifications...</p></pre>twisted1919: <pre><p>yup, webhooks. the question is more about what you'd use as your stack to make this happen. having a http server accepting POST was something from the get-go.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传