Skip to content

How to use SPA (React) and Ocelot together? #1918

Answered by raman-m
gkumar1234 asked this question in Q&A
Discussion options

You must be logged in to vote

@gkumar1234
We recommend to split your traffic into 2 gateways as @Arcalise08 said.

  • Backend For Frontends instance
  • APIs instance

If you try do everything using one Ocelot instance then you will be confused and define wrong routes, with possible conflicts.

Finally,

Use 2 Ocelot instances.
But pay attention, for BFF scenario Ocelot doesn't support all frontend features! For example, Ocelot doesn't forward HTML forms now.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
3 participants
Converted from issue

This discussion was converted from issue #1501 on January 13, 2024 18:06.