Skip to content

Configurable server instances factories (singleton, etc) #102

Open
@ShayOinif

Description

Hello, i know this lib is very new and things are still moving.
But I like the concept very much, and I would love to use it in some of my projects.
I have 2 main issues:

  1. My server side is going to be on Linux and right now there isn't ktor server transport for this target.
  2. As I see the impl and underlying protocol, I have to create a KRPC server for each client.
    I would love to simply supply the same instance for all clients.
    I understand that the main reason is ID'S not being unique between different client calls.
    Maybe uuid v7 which is time based can be used?
    Anyhow, I know that some work around could be to make my impl for the service an inner class of main service or singleton and make them very thin and simply redirect the calls to main/singleton service.
    But still, I don't like all this instantiation.

Thanks in advance and I am really looking forward to use this lib in my code!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions