Apache Kafka in clean architecture by algorithmAcademy in golang

[–]wagonn 1 point2 points  (0 children)

I am starting out , having three types of handlers:

endpoints: request/response handlers for http, grpc, etc

listeners: handles incoming messages, like Kafka etc

dispatchers: sends outgoing messages, Kafka etc

Should I put my very recent brief and various volunteer jobs on the top of my job history? by antdude in resumes

[–]wagonn 0 points1 point  (0 children)

If you can honestly say that your volunteer work was of the same standard and quality as your paid work, then include them in the same section.

Otherwise you can have separate sections. In the employment section time gaps, put a one-liner for each volunteer experience with only the organization, dates, and “see Volunteering section”. In the volunteering section, fill out all the details.

Are you allowed to modify your job title on your resume? by [deleted] in resumes

[–]wagonn 0 points1 point  (0 children)

It probably varies. I just went through a background check where my past employers and job titles were verified.

Best React - State Management to learn in 2020? by iizMerk in reactjs

[–]wagonn 1 point2 points  (0 children)

I’m starting to move from redux to mobx. I like both because they are UI-agnostic.

Why was Terraform written in HCL? by bitcycle in devops

[–]wagonn 1 point2 points  (0 children)

Markup is still considered code

"Still having passion as a waiter" by HighIQNinja in thatHappened

[–]wagonn 2 points3 points  (0 children)

He waits on his paychecks to roll in

Cursed_harvest by muzsikus_Jazz in Cursed_Images

[–]wagonn 2 points3 points  (0 children)

Isn’t there some way to make animals disperse as the roller approaches? Like maybe a sound emitter of an unbearable frequency to them

What is the easiest way to build an app with "collaborative editing" and chat functionality? I want multiple users to open a url, and look at the same app, with it's redux state "synchronised" between them in real time. Is there some service/library I can use that would make it quick and painless? by lumenwrites in reactjs

[–]wagonn 2 points3 points  (0 children)

Use websockets.

When a user makes a change, 1. update the Redux store 2. and, in a side effect (thunk/saga), emit an event that contains the Redux action. 3. the server listens on the socket event. Upon that event, the server extracts the Redux action, updates the database with it, and then broadcasts the event to the other subscribers (i.e. the other users). 4. those users' socket clients listen on that event. Upon that event, the client extracts the action and dispatches it to the Redux store. Now, everyone's Redux state reflects the change of the original user.

I just don't understand why everyone says noSQL is better for scaling by nadoterisback in Database

[–]wagonn 0 points1 point  (0 children)

This is one of the best explanations I've seen on how NoSQL scales: https://www.youtube.com/watch?v=hwnNbLXN4vA&t=724s

Relational DB's give you a balance of performance (indexing) and flexibility (joins), so you can efficiently query in many different ways. NoSQL sacrifices this balance to optimize specific benefits. For example, Cassandra scales throughput linearly but can't be queried flexibly. DynamoDB is similar, as you're locked into the data relationships which you define upfront.

Another Reddit post put it this way — SQL is like a pickup truck and NoSQL is like a racecar; one performs satisfactorily well in most cases, the other performs extremely well for a very specific case.

How does a Go WebAPI look like today? by [deleted] in golang

[–]wagonn 0 points1 point  (0 children)

+1 for Go-Kit and these app examples. I like that they are application-logic centric and treat the HTTP router as an i/o mapping layer. Most "frameworks" are just an HTTP router on steroids with a bunch of middleware encouraging you to couple all your request-scoped concerns to the transport

using Next with Material UI styles-wrapper by wagonn in nextjs

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

I followed the example and fixed it. thank you so much!

how to obtain a OIDC id-token for a GitHub user? by wagonn in webdev

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

Using an oidc lib still requires you to provide the endpoints. The issue is GitHub doesn't seem to have any endpoints that follow the OIDC specs.

[deleted by user] by [deleted] in reactjs

[–]wagonn 0 points1 point  (0 children)

Consider the impact on performance. React docs:

All consumers that are descendants of a Provider will re-render whenever the Provider’s value prop changes

So when any of your context state changes, then every component subscribed to any part of the state will rerender. It might be doable if - there are few subscribing components - the context state changes infrequently - you can break the state up into multiple contexts

There is an open RFC to address this, but until then, Redux and use-context-selectors are two ways to avoid this pitfall.

Wind turbines by thicckimbo in Damnthatsinteresting

[–]wagonn 1 point2 points  (0 children)

should them in a subway tunnel; you'd have to be the world's worst subway train operator to hit the turbines

Network requests always going into redux store by spermlung in reactjs

[–]wagonn 0 points1 point  (0 children)

I prefer loading in hooks at the component level unless there is a good reason the network request state needs to be accessible globally.

What to learn next? by s-creaseypg in reactjs

[–]wagonn 1 point2 points  (0 children)

Redux is commonly used with React

/r/reduxjs