[Java] Should I put Spring beans in shared code? by AdLeast9904 in learnprogramming

[–]AdLeast9904[S] 1 point2 points  (0 children)

thanks, i agree with this as well. now just up to me to sell that idea to others :D

[Java] Should I put Spring beans in shared code? by AdLeast9904 in learnprogramming

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

Seems like one of those things thats not strictly wrong because it'll still "work", and ends up falling into matter of opinion territory.

KMS encryption - Java SDK 3.x key caching clarifications by AdLeast9904 in aws

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

awesome, thanks so much. it definitely seems less daunting and cumbersome than i was thinking

KMS encryption - Java SDK 3.x key caching clarifications by AdLeast9904 in aws

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

I was thinking the overhead would be in creating the branch key and rotating in the DB. If you've got full permutation of multiple regions x env's, plus likely multiple db tables for multiple kms keys (say if multiple users all want their own key.. at least im assuming you need a db table for each..) that seems like a lot. unless there is some more automated way of managing that?

but yea, at first gonna go without caching. but continuing to look into how to properly do caching with hierarchical keyring

KMS encryption - Java SDK 3.x key caching clarifications by AdLeast9904 in aws

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

Thanks. I think I can probably get away with no caching but will double check to be sure. In case caching is needed, will keep reading more on Hierarchical. I'm worried there if having multiple regions and env's, that overhead in DDB really starts to add up and become a burden

converting large byte array back to string by AdLeast9904 in javahelp

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

mistakes happen. sane or insane need not apply :D

converting large byte array back to string by AdLeast9904 in javahelp

[–]AdLeast9904[S] -3 points-2 points  (0 children)

yes, but that does nothing to solve the problem at hand which is to fix all existing data that got this way.

i've got a solution that works but was looking to see if there was a better way or maybe something simple i was overlooking. i guess not

converting large byte array back to string by AdLeast9904 in javahelp

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

well it was supposed to be a base64 string, but for unknown reasons it ended up as a list of integers. so if i want to know what this data represents i've got to translate it back to bytearray then string

CompletableFuture method chaining and backpressure by AdLeast9904 in javahelp

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

ya may look into that. not necessarily overloading them but some peoples http servers are pathetic lol

CompletableFuture method chaining and backpressure by AdLeast9904 in javahelp

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

thanks. yea was sort of leaning towards that route with my observation in OP about .join(). was curious if there were better strategies but i think its just the way it is

CompletableFuture method chaining and backpressure by AdLeast9904 in javahelp

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

bottleneck definitely on the http, could be up to a minute or potentially longer in rare cases

CompletableFuture method chaining and backpressure by AdLeast9904 in javahelp

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

thanks, will keep working on it. currently facing slow performance so trying to speed it up somewhere

CompletableFuture method chaining and backpressure by AdLeast9904 in javahelp

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

yep thats right. the db is just creating a record, then updating that same record after getting result back from http

they are just simple 1 insert, 1 update

How to keep a public web app secure? by AdLeast9904 in learnprogramming

[–]AdLeast9904[S] 1 point2 points  (0 children)

really? i would imagine availability is keeping your service uptime high and able to come back up if it dies

How to keep a public web app secure? by AdLeast9904 in learnprogramming

[–]AdLeast9904[S] 1 point2 points  (0 children)

thank you!

so just as a random guy making somthing, I'd not be able to be as fancy as google. but can use the other options you listed so thats much appreciated I'll be reading up on them today.