简体   繁体   English

segment.io 服务器真的将事件路由到多个目的地还是移动 sdk?

[英]Does segment.io servers really route events to multiple destinations or the mobile sdk do?

I am facing difficulty to understand how segment.io works.我很难理解 segment.io 的工作原理。

Segment has explained that all data is sent to them (segment servers) and then it will be routed to destinations. Segment 解释说,所有数据都发送给它们(段服务器),然后将其路由到目的地。

From https://segment.com/docs/guides/general/what-is-segment/来自https://segment.com/docs/guides/general/what-is-segment/

You just send your data to us, then we translate and route it to all of your tools您只需将数据发送给我们,然后我们将其翻译并路由到您的所有工具

But when I checked the one of the open sourced integration with CleverTap, It looks like the mobile application is sending the events to CleverTap directly, without going through Segment Servers.但是当我检查与 CleverTap 的开源集成之一时,看起来移动应用程序是直接将事件发送到 CleverTap,而不是通过 Segment Servers。 Here are code snippets.以下是代码片段。

https://github.com/CleverTap/clevertap-segment-android/blob/master/src/main/java/com/segment/analytics/android/integrations/clevertap/CleverTapIntegration.java https://github.com/CleverTap/clevertap-segment-android/blob/master/src/main/java/com/segment/analytics/android/integrations/clevertap/CleverTapIntegration.java

cl.pushEvent(event, properties);

Here cl is CleverTap API, which is also opensourced at这里cl是 CleverTap API,它也是开源的

https://github.com/CleverTap/clevertap-android-sdk/blob/master/clevertap-android-sdk/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java https://github.com/CleverTap/clevertap-android-sdk/blob/master/clevertap-android-sdk/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java

Here eventually the pushed events are batched and send to Clevertap server.最终,推送的事件被批处理并发送到 Clevertap 服务器。

https://github.com/CleverTap/clevertap-android-sdk/blob/master/clevertap-android-sdk/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java#L2207 https://github.com/CleverTap/clevertap-android-sdk/blob/master/clevertap-android-sdk/src/main/java/com/clevertap/android/sdk/CleverTapAPI.java#L2207

So, is there any role of Segment servers in this process or not at all?那么,Segment 服务器在这个过程中是否有任何作用,或者根本没有? If segment servers are not involved then I guess the more integrations you add the more of your users internet data will be consumed.如果不涉及分段服务器,那么我猜您添加的集成越多,将消耗的用户互联网数据就越多。 Is this right?这是正确的吗?

If you are using a bundled SDK like the CleverTap Segment SDK , then data is tracked by Segment and CleverTap.如果您使用的是像CleverTap Segment SDK 这样的捆绑 SDK,则数据由 Segment 和 CleverTap 跟踪。 You can see in CleverTapIntegration.java that Segment methods are overriden.您可以在 CleverTapIntegration.java 中看到 Segment 方法被覆盖。 If you call any Segment function like identify() then internally data is also sent to CleverTap.如果您调用任何 Segment 函数(如identify()则内部数据也会发送到 CleverTap。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM