Skip to content

Refactoring Discussion 20171Q or Gohan2 #362

@nati

Description

@nati

This is an issue for noting think-aloud refactoring discussion. Could you share your pain point in current design here?
I'm wondering if this may end up start new project such as Gohan2 or some small refactoring.

[1] IAM and Policy framework
Current IAM and Policy framework is really tightly coupled with OpenStack Keystone.
This would limit the possibility of this project.
We should support more flexible IAM and policy framework.

[2] Extension & Gode generation
Personally, I feel choosing Javascript for extension was the biggest mistake I made in this project.
I don't rant the Javascript language itself, but given slowness and difficulties for debugging server side logic using go-based javascript implementation, now I believe using Go is the best way in server side.
I tried to implement some MACRO language by myself, but I felt this isn't sustainable effort.
Current API logic code looks complicated to support many use-cases.

One of my goal of this project was to avoid code generation and compiling. This really works for client and WebUI, but it may not makes sense for server side codes which have custom logic on top of what Gohan provides.

so now, I believe we should build server-side code generation tool.

[3] OpenAPI / Swagger
I'm still thinking whether we should adopt OpenAPI / Swagger or not.
We may use more tool around this eco system, but the spec don't fully provides what we need..

[4] Replacing martini to Echo
Echo looks like more high performance,

Metadata

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