gpt4 book ai didi

firebase - Firebase Cloud Messaging 是否被视为消息代理?

转载 作者:行者123 更新时间:2023-12-02 18:58:46 26 4
gpt4 key购买 nike

我的任务是在分布式系统中选择实现消息代理。 Firebase 云消息传递是否被视为其中之一?

最佳答案

没有。至少在某种意义上并不相同,但两者都与消息交换有关。

Firebase Cloud Messaging (FCM)是一种消息传递服务,通常(如果不是总是)用于 Push Notifications :

A push notification is a message that is "pushed" from backend server or application to user interface, e.g. (But not limited to) mobile applications and desktop applications. It is more user experience specific which is different from Push technology, which pushes the requests between components such as server to server communication. A common scenario of push notification is the client application pops up a message in front of application's user information, along with the alert sounds. The notification could also coupled with images and hyper text link in some cases. Via interacting with the push notification it usually brings up the client applications to the front.

该服务可以被描述为一个中间件,它处理应用服务器(通常是发送者)和客户端(接收者)之间的消息发送/传递。但为了使它们能够进行相应的通信,发送方和接收方都必须配置为接收消息本身(即它们必须适应消息)。

虽然Message Broker描述为:

In computer programming, a message broker is an intermediary program module that translates a message from the formal messaging protocol of the sender to the formal messaging protocol of the receiver. Message brokers are elements in telecommunication or computer networks where software applications communicate by exchanging formally-defined messages. Message brokers are a building block of Message oriented middleware.

从描述本身来看,消息代理也可以被视为一个中间件,但它的任务更多的是转换/翻译/调整消息,以便它顺利 由接收者接收。

维基百科页面还提供了可用的消息代理软件列表,其中包含:

关于firebase - Firebase Cloud Messaging 是否被视为消息代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44155777/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com