Skip to main content

Heartbeats

Functional design

  • Client subscribes to the sys.Heartbeat30 table in any Workspace
    • ~freq.Interval30Seconds~covrd1✅: Server sends heartbeat every 30 seconds
    • ~freq.ZeroKey~covrd2✅: Heartbeat is generated for AppQName{} and NullWSID
    • ~freq.SingleNotification~covrd3✅: If the client subscribes to sys.Heartbeat30 in multiple workspaces, the server sends only one heartbeat per 30 seconds to the client
    • It is not necessary to insert a record to the sys.Heartbeat30 singleton

Technical design

  • ~cmp.wsingleton.Heartbeat30~covrd4
    • No ACL
  • ~it.Heartbeat30~covrd5

Addressed issues

Footnotes

  1. [~server.n10n.heartbeats/freq.Interval30Seconds~impl] pkg/in10n/interface.go:31:doc, pkg/in10nmem/impl.go:116:doc, pkg/in10nmem/impl.go:492:impl

  2. [~server.n10n.heartbeats/freq.ZeroKey~impl] pkg/in10n/interface.go:26:doc, pkg/in10nmem/impl.go:111:doc, pkg/in10n/consts.go:20:impl, pkg/in10nmem/impl.go:152:impl

  3. [~server.n10n.heartbeats/freq.SingleNotification~impl] pkg/in10nmem/impl.go:153:impl

  4. [~server.n10n.heartbeats/cmp.wsingleton.Heartbeat30~impl] pkg/sys/sys.vsql:103:impl

  5. [~server.n10n.heartbeats/it.Heartbeat30~impl] pkg/sys/it/impl_n10n_test.go:298:impl