-
Notifications
You must be signed in to change notification settings - Fork 73
add fault tolerance plugin #2061
Comments
/cc @craicoverflow, @wtrocki |
You reading my mind don't you? And have been on fire today!
I would look for doing this first as bringing more opiniated approaches into graphback might drive off some community. We have multiple ways to compose things (including services) and that might work. Sorry for snapping issue. We can chat about it at some point |
+1 this is a good idea.
Sure, that's the whole idea of opening this issue, to get the discussion going. |
Hey, I'd like to work on this issue. |
Hi @namit-chandwani. Follow the Plugin creation guide and check out the other plugins for help. We don't have any strict approach for this other than the description provided by @machi1990. |
Hey @craicoverflow! But there's this one thing that I need help with. After that, I move to the Then I move into the generated graphback server's directory (ie. Trial-Graphback-Project) where I find the .graphqlrc.yml file, which is configured to use the Schema CRUD Plugin in order to generate the schema. Now whenever I run the But we know that won't happen, as So I looked this up on the internet and found a solution which uses the I then followed the following steps to link the generated graphback server to the updated local version of the
But no luck even after following the above steps. Still the locally updated Is there anything that I'm doing wrong here while using the |
I'd highly appreciate it if you could help me with this, whenever you're free. Thanks in advance!😊 |
We use yarn workspaces. If you install project using yarn you will be able to see the changes. |
@wtrocki Thank you for the response!
Yes, I have been doing the same ie. I installed the project using yarn and used I'm not sure what's causing this issue then. Update 1: So just now I uninstalled the global version of So to test it now, I reverted back all of the changes that I made in the SchemaCRUDPlugin.ts file so that's its back to the original version. But running namit: ~/Projects/graphback/packages/create-graphback/Trial-Graphback-Project (master)
>> yarn generate
yarn run v1.22.5
$ graphback generate && graphql codegen
<b>Generation failed: Error: Cannot find ObjectTypeComposer with name Note</b>
✔ Parse configuration
✔ Generate outputs
Done in 2.00s. One important thing to note here is that the SchemaCRUDPlugin.ts file that I'm using here is the original one without any changes made by me, and still it's showing this error. As I mentioned in my previous comment, this is the approach that I've been following for linking the packages:
What do you think? Is there anything that I'm doing wrong in the two steps above? |
Is your feature request related to a problem? Please describe.
Resiliency against failure e.g
Describe the solution you'd like
a plugin that declares:
@retry
,@timeout
,fallback
annotations to support various fault tolerance pattern.Describe alternatives you've considered
This is current achievable by hooking into the created resolvers and compose them into any of your preferably circuit breakeer / fault tolerant js library.
The text was updated successfully, but these errors were encountered: