Initial thoughts on migration from tide to trillium #117
prabirshrestha
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I finished porting rblog a simple filesystem blog engine written in tide to trillium and is now live at https://blog.prabir.me and wanted to provide my initial thoughts. While rblog is simple I tried to use as much feature as possible to get the overall experience where applicable. For bugs discovered, I have already submitted separate issues but rather than creating n number of feature requests writing in one (thanks for fixing it already).
(conn) -> Conn
as handler is a very powerful concept. No need to think if it is a middleware or routes or util function. Just create a handler and it is reusable by default. Can't wait for the community to provide more of these.with_status
in the end.ConnId
. My general thought is to never trust the user data. I have always had ClientRequestId and ServerRequestId. This ways if someone is using a tool and spamming or reruns the fiddler requests, we still get the same client request id but new server request id. This would be very useful for debugging.0.0.0.0
for Docker to accept incoming requests. A comment in docs would help?ConnId
usage.ETag
,If-None-Match
headers.Result<>
as described in Better documentation/discussion for error handling #31 but slowly started to get used toconn_try
andconn_wrap
. Axum seems to haveIntoResponse()
which was an interesting concept.to_owned()
. It would be good to have a dedicated documentation page on State.KnownHeaderName
is exposed. I don't know why most fwks don't expose it. Prevents lot of simple spelling mistakes. If possible I would also prefer some other well known values so that I stop searching online what they are but could be controversial too.HOST
,PORT
just works without me doing anything. I have always found it waste of time configuring this in every webapp I write. With trillium, I can just focus on the actual webapp logic.halt()
. Need to get used to this. 😃.halt()
Beta Was this translation helpful? Give feedback.
All reactions