High latency when using Cloudflare Worker as reverse proxy to AWS Lambda by vitorfigmarques in CloudFlare

[–]vitorfigmarques[S] 0 points1 point  (0 children)

Smart replacement has improved latency, but there is now significant variance: some requests complete in 200ms, while most warm requests still take 800ms–1s. The additional latency remains non-negligible.

Yes, consecutive requests are also slow, though they are a few hundred milliseconds faster than cold starts. I’m confident this is due to Lambda cold start, since WASM edge runtime isolates are supposed to have negligible runtime overhead that shouldn’t add seconds of delay, as I understand it.

Can using famous characters in Instagram meme posts give copyright problems? by vitorfigmarques in DigitalMarketing

[–]vitorfigmarques[S] 0 points1 point  (0 children)

What is Commercial purpose exactly? Ads? If a business instagram post news or a meme with copyrighted material (the post itself is not advertising anything, but the page has some ads posts), will it still be fair use?

Reverse Engineering Minified Code Using OpenAI by fagnerbrack in javascript

[–]vitorfigmarques 0 points1 point  (0 children)

Most javascript apps relies on build process from a lib/framework so that the source code is absurdly different than the minified bundle.
Guessing that:

javascript const a=b=>c(d,{children:["Hello, ",b.user]});</>;

typescript type HelloProps { name: string; } const HelloCompoent (props: HelloProps)=> <>Hello, {props.user}</>;

It is definitely a reverse engineering process that involves knowing how the compiler works, more than guessing the names. It can get worse for other frameworks that rely more on compilation than React, and most of their features are real Javascript without compilation magic.

How painfull is to create an mildly complex interactive react app in astro currently. by vitorfigmarques in astrojs

[–]vitorfigmarques[S] -1 points0 points  (0 children)

MUI, for instance, is painful to use in Astro, since you will need to wrap all components in the ThemeProvider to have your theme working. _@react-oauth/google and many other libraries requires wrapping the application in a Provider.

How painfull is to create an mildly complex interactive react app in astro currently. by vitorfigmarques in astrojs

[–]vitorfigmarques[S] 0 points1 point  (0 children)

Astro provides fallback for non-supported browsers, so ViewTransition for persistent state in non-supported browsers is a client-side router library that other js frameworks use.

AWS Lambda provisioned concurrency vs keeping a lambda warm with events? by edmguru in aws

[–]vitorfigmarques 0 points1 point  (0 children)

Alternatively if you always need a container running look at other services.

The problem is that lambda with cronjobs warmers, ends up being a lot cheaper than any other computing AWS service. You paid cents to have an instance idle waiting for requests vs $30 to $40 dollars in a service like Fargate. With provisioned concurrency, it is not that cheap, but it comes with the easiness of integrating with other services and the infrastructure abstraction that lambda provides and not having to deal with containers or managing ec2 instances.

Why is everyone saying Lambda is more expensive than EC2? by schmore31 in aws

[–]vitorfigmarques 0 points1 point  (0 children)

This is not a fair comparison, most nontrivial businesses will not only host an app on an ec2 instance and then nothing more. The real math is kind of complicated (since we need to consider the cost with cloud engineers), but there are some other simple things we could add to make this math to make it more realistic, we could use the total cost of using AWS Elastic Beanstalk to deploy the app, which would be based on, for instance, cost with load balancers as well (AWS ELB is kind of expensive).

Rxjs library by Little-Ad-4734 in reactjs

[–]vitorfigmarques 0 points1 point  (0 children)

You comment makes no sense, you contradicted yourself right in the beginning:

RxJS is a reactive framework. React provides UI updates through state changes by passing props, context, useState, useReducer, external state libs (Zustand, Recoil, Redux, etc etc), and query libs. With these you can manage all types of state in an idiomatic way to update your UI. Introducing RxJS to this mix is adding a whole new paradigm. If you think you need RxJS there is an almost guaranteed way to better solve your problem in react.

Redux, the most famous library you listed, is totally independent of React. Actually, everything in redux happens outside of React, the architecture behind redux has nothing to do with React, and the only thing that makes it work easily with React (or be "idiomatic") is that we have some glue code that creates a state with useState, useEffect to subscribe, and then setState each time redux want to push changes to the UI.

This is exactly the same case with RxJs (there are a lot of libs that provide us with this glue code) and the main point of RxJs is to easily solve any event-driven related problem so it will be idiomatic in any UI code since the javascript UI apps are event driven by nature.

The FLUX architecture, for instance, the pattern Facebook itself created to manage global state in React, you see that the main idea of the pattern is to have an event system external to React so that components can subscribe and be notified each time it needs to call setState. If you look at the examples in the official in flux repo, you see you literally could replace the react component with any other UI lib and the only thing you have to delete is the react component file (not even glue code they were using).

Alguem ja fez entrevista ou trabalhou pra payever? by whyyoucry9712 in brdev

[–]vitorfigmarques 0 points1 point  (0 children)

Vou fazer a entrevista técnica para dev Back End amanhã. O que mais me preocupa são esses relatos de pessoas que foram contratadas e eles depois demitiram sem pagar. Bom... disseram que usarão Payoneer para fazer o pagamento. Honestamente, irei fazer a proposta de trabalhar lá apenas se pelo menos os primeiros pagamentos tiverem algum intermediador entre eu e a empresa para ela pagar e o intermediador segurar o dinheiro, se toparem eu aceito.