syntaxseed,
@syntaxseed@phpc.social avatar

Working on my first project to be hosted by the client on AWS & I'm told I can't store anything on the filesystem.

So now I have to rethink profile picture uploads, session storage, logs, etc.

🤔🤔🤔

syntaxseed,
@syntaxseed@phpc.social avatar

Got a intro grasp of how to use the AWS SDK to pop the profile pictures onto S3.

Might change the sessions to DB storage.

I'm told the client has something set up to catch log messages written to php://stderr.

So there's a plan. Guess we'll learn something. 😊

ramsey,
@ramsey@phpc.social avatar

@syntaxseed Yeah, ephemeral storage is one of the hardest things to get used to when moving to the cloud.

AWS also has ElastiCache, managed memcached, which might work better for sessions than storing in the DB.

TheCodeLorax,

@syntaxseed Sounds like something that would make a great article for @editor.

Just Saying Bernie Sanders GIF by Saturday Night Live

syntaxseed,
@syntaxseed@phpc.social avatar
heiglandreas,
@heiglandreas@phpc.social avatar

@syntaxseed S3, Redis and Datadog/elk-stack to the rescue.... 🙈

heiglandreas,
@heiglandreas@phpc.social avatar

@syntaxseed BTW: From own felt pain: Use something like flysystem to implememt the filesystem operations.

Thank me later when you write the tests and can use a local system instead of S3 🙈

kboyd,
@kboyd@phpc.social avatar

@heiglandreas @syntaxseed not even just a local system ... in-memory is also possible, avoiding the FS entirely in tests. (Assuming it's not a huge data size)

thomastospace,
@thomastospace@phpc.social avatar

@heiglandreas @syntaxseed Flysystem is one of those things I can't live without. Changing to another adapter (local to S3) is super easy.

dgoosens,
@dgoosens@phpc.social avatar

@heiglandreas @syntaxseed

hello Sherri
might be of interest to checkout the FlySystem

tl;dr
it's an abstraction to deal with files so that you don't have to worry where or how they are stored... and can access them
(AWS S3 comes out of the box)

https://flysystem.thephpleague.com/docs/

syntaxseed,
@syntaxseed@phpc.social avatar

@dgoosens @heiglandreas Thank you, that looks great!

syntaxseed,
@syntaxseed@phpc.social avatar

@dgoosens @heiglandreas
Flysystem is working swimmingly! 😁

dgoosens,
@dgoosens@phpc.social avatar

@syntaxseed @heiglandreas
glad it worked out Sherri

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • anitta
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • provamag3
  • tester
  • Leos
  • megavids
  • JUstTest
  • All magazines