Replies: 5 comments 3 replies
-
Aha that's what you meant by an API. That's an interesting solution! The main concern I would have is the performance cost of using a separate service for SSR-ing parts of your page. Spawning a local node process to do the SSR could be faster than reaching out to another service, but perhaps that would depend on your hardware/infrastructure. For a Go backend, this might be another solution #4193 |
Beta Was this translation helpful? Give feedback.
-
Mmmm interesting, I will make some benchmarks, I was making an API thinking in the deduplication but I guess that becomes it a NPM dep should cover this purpose |
Beta Was this translation helpful? Give feedback.
-
I'm building an NPM package to be reused by a server or an RPC implementation, it should be used until a better implementation allows SSR without using a Node process as a proxy I got to implement a Unix socket, which is significantly faster than an API Rest, it serializes the data with Protobuf
It exports 3 apis
Important:
I have time to make changes next week |
Beta Was this translation helpful? Give feedback.
-
Good news, I published lit-ssr-utils@v.0.2.3, coming soon I will publish I am waiting for this oven-sh/bun#8044 to enable Unix sockets. |
Beta Was this translation helpful? Give feedback.
-
I built an API to bring SSR to frameworks like Django, I think renderLitElement should be used over a Lambda Function or you should deploy the service and use it in different projects.
I think that the reason #1 to use this is to add support to Web Components from your unsupported backed
Beta Was this translation helpful? Give feedback.
All reactions