跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] 请教一个场景怎么搭建服务

发表于
  1. 有一个 tcp 服务,连接成千上万的设备
  2. 有一个 websocket 服务,连接用户端 如 web ,小程序,app 等

用户发送的请求通过 websocket 通知给 tcp 到设备,下面 2 种方案怎么选择?

  1. tcp 和 websocket 服务合并成单个服务开发部署 缺点:每次重启 ws 就要重启 tcp , 优点:不需要 2 个服务之间通信
  2. tcp 和 ws 分开部署 缺点: 服务间需要通信,要么 ws 开一个 tcp 客户端,要么用消息中间件, 增加维护成本 优点:ws 可以单独重启,ws 服务上含有业务 api

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.