Apollo federation gateway on AWS fargate

I have federation gateway hosted on a lambda function, I read on docs that it is not recommended to do that.
is it a good practice to use aws fargate instead? or it is also not recommended because fargate is a serverless environment ?