I started a sango paid plan

It has been well received, if you make only GitHub account so soon MQTT can use MQTT as a Service: sango https://sango.shiguredo.jp/>` _ to pay Standard Plan is introduced It was. Of course, free plans are used as they are.

Standard plan is

  • The number of concurrent connections : 50
  • TLS allowed
  • QoS 0, 1, 2 correspondence
  • Maximum message size : 50 kilobytes
  • Monthly maximum number of messages : 120,000

It is very practical compared with free plan.

In addition, in order to have with a function of up to here, 一月たったの500円(税込み540 円) is. This is profitable!

Cluster support

And the best seller of the standard plan is "cluster correspondence".

When you apply to the standard plan, the connection destinations are displayed as follows as shown below. (It is not an actual host name)

2014/11/04/sango-standard.png

It is possible to connect to either of these, and pub / sub is possible. That is,

  • Subscribe to the first
  • Publish to the second

Even then, the message will flow to the one that is properly connected to the first one.

For example, in the paho implementation of golang this is done when setting the destination server.

opts.AddBroker("tcp://good1.shiguredo.jp:1883")

AddBroker in about that, you can add any number of units. I will try the connection in the order of addition. In other words, even if one is dropped, you can connect if another server is alive.

(Unfortunately it's only golang in paho that makes this kind of interface, but it's easy to write fallback code yourself)

Summary

Provides a service of MQTT, sango has been added to the pay plan. In addition to functions such as TLS and QoS 2, "cluster function" has been added.

By using the standard plan, you will be able to use more practical MQTT functions beyond just trying. Because it is profitable as 500 yen per month, we can recommend you with confidence to those who want to use MQTT properly for actual use.