reactjs – How to print a reactive bar code component

I'm trying to print a bar code created by reaccion-barcode.

I have tried using the methods described in this question, but it seems that I can not print the barcodes.

Probably this is because an SVG is being processed by reaction-ship. I have also tried to react to print and react easily, but it seems that they also fail me.

I also hope to download the barcode but nothing seems to work.

architecture – When should I use the reactive web framework?

When I build a standard web API in the Java world, there are two ways to do it today.

  1. Use SpringMVC (non-reactive)
  2. Use SpringWebFlux (reactive)

There are few benefits of using Reagent that I can think

  • Uses fewer memory resources, since there are fewer threads running (perhaps better for a container-based implementation)
  • It is better for situations in which your api might need to call other apis and does not want to think about the concurrency problem (this can also be done in traditional webmvc, but then you need to use CompletobleFuturo etc while in reagent let the framework handle it)

There are some disadvantages that occur to me when using Reagent

  • The complexity of the code, since everything is now chained and you must be careful not to block the thread and you must be aware that there is no ThreadLocal like things like registration using MDC is more complicated now
  • Increase latency as there are fewer threads now

One of the selling points of the reactive way of doing things is the back pressure concept, but when the normal request / response is reached in the web pages, it is not used, whether you process it or not, there is not a process in the chain that reduces the production of data.

I'm not sure if the benefit I mentioned above is worth the complexity of a web apis. I would like to hear thoughts about that. If web pages are not the right place to use reagents, where do you think is the right place to use them? Or if the reactive form is the way to do it, then does not mean that there is no longer any place for the traditional way of doing things in the webmvc?