xmtp / example-notification-server-go

Example push notification server, written in Golang
MIT License
15 stars 8 forks source link

Add first service #2

Closed neekolas closed 1 year ago

neekolas commented 1 year ago

Summary

Notes

I decided to define a bunch of new structs as the return value of all the services, rather than use either database models or Protobufs. The rationale for this was that

  1. I want the service boundaries to be agnostic to the database, so that someone can plug in new services that are not dependent on the DB
  2. These services include internal endpoints that will be needed by the server to send notifications but that do not need to be exposed externally. So, protobuf would only be a partial solution.

I still don't love it

Todo