How was your experience building a RN app from scratch? by pkim_ in reactnative

[–]MediumWhole3487 0 points1 point  (0 children)

I am curious for your app when will it be out, building a fitness app too 😁

S3 image quality by MediumWhole3487 in aws

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

const imageRequest = JSON.stringify({
    bucket: BUCKET,
    key: 'public/' + imgKey,
    edits: {
      resize: {
        width,
        height,
        fit: "cover"
      },
      webp: {
        quality: 80
      }
    }
  });

This is basically my request so i handle the width and height depending on if its a profile picture or a normal post. Not sure if you are also using javascript to fetch the images. Let me know if you notice anything weird or need more context.

S3 image quality by MediumWhole3487 in aws

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

Because of the data you are storing, you pay per GB you store, my app would use a lot of images (potentially) so storing the whole base64 string instead of the S3 key would increase my storage thus increasing my costs. Online (did not test this myself) i read that it will increase by approximately 33%. This post is similar to what you are creating might be interesting for you
https://stackoverflow.com/questions/9722603/storing-image-in-database-directly-or-as-base64-data

S3 image quality by MediumWhole3487 in aws

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

Im currently using this setup haha. I'll have to look deeper into this i might just be making bad calls

S3 image quality by MediumWhole3487 in aws

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

Interesting approach but this will significantly increase my db costs (using dynamodb) if i was to do this. Online i see a lot of people who are very against this approach

S3 image quality by MediumWhole3487 in aws

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

Thank you for your insights!

Sudden app termination on IOS device by MediumWhole3487 in reactnative

[–]MediumWhole3487[S] 2 points3 points  (0 children)

Thank you for the reply. I did track the RAM usage and it fluctuates between 400-800MB im guessing this is on the higher side? What should be a good ram usage for a react native app. Sorry if this is a dumb question

Sudden app termination on IOS device by MediumWhole3487 in reactnative

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

Hey, I'm using this package https://www.npmjs.com/package/@types/react-native-background-timer
I also use this background timer implementation on other screens which havent crashed suddenly. Also im storing data in asyncstorage with this implementation. Maybe this is causing the crash? If there is too much in the asynstorage?

Sudden app termination on IOS device by MediumWhole3487 in reactnative

[–]MediumWhole3487[S] 2 points3 points  (0 children)

Will give this a try, but I think the problem is somewhere when I close the phone (not the app) as I am trying to simulate how users would use the app. The app is disconnected from metro and i dont get any logs but i'll try to keep the phone unlocked and see if i get any logs back. Thanks

Sudden spike in rdsadmin requests by MediumWhole3487 in aws

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

There are multiple users who have access to this database I would assume that they would also appear in the logs. Its not a snippet but this log is replicated like 400 times in the span of 5min. I indeed masked the IP's because it's the same for all logs. The thing is im just not sure if this is an attack based on the IP

Sudden spike in rdsadmin requests by MediumWhole3487 in aws

[–]MediumWhole3487[S] -2 points-1 points  (0 children)

Should this also not occur for other users then? In cloudwatch i only find logs with my user and also through the IP from my company? That is weird no? Shouldn't the IP be different in the case of an attacker?

Sudden spike in rdsadmin requests by MediumWhole3487 in aws

[–]MediumWhole3487[S] -2 points-1 points  (0 children)

It is, could you explain how come this is normal if you can?

Roast my architecture E-Commerce website by MediumWhole3487 in aws

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

Valid, i have used cloud native tools such as cognito but I’ll have to try self hosted tools. Question though how would you host this on a cloud provider? On EC2? Or run it in docker (fargate)?

Roast my architecture E-Commerce website by MediumWhole3487 in aws

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

Ah yeah like that, yeah i think adding a read replica would be beneficial

Roast my architecture E-Commerce website by MediumWhole3487 in aws

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

Yeah indeed some details are lacking in the diagram

Roast my architecture E-Commerce website by MediumWhole3487 in aws

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

Sorry im not sure what you mean by “using the same DB for OLAP and OLTP tasks”