Software Alternatives & Reviews

Using the Bridge Pattern in Laravel

Redis memcached Fixer.io exchangeratesapi.io DynamoDB
  1. 1
    Redis is an open source in-memory data structure project implementing a distributed, in-memory key-value database with optional durability.
    Pricing:
    • Open Source
    As you'll have probably noticed in the Laravel documentation and in your project's config, Laravel supports a few different drivers for caching, including: Redis, DynamoDB, Memcached and the database. So, for example, if we were to set our cache driver in our .env file to CACHE_DRIVER=redis, when we run our code snippet above, the data would be stored in our Redis cache. However, if we were to change the driver to be CACHE_DRIVER=database, this would result in data being stored in the database instead.

    #Key-Value Database #NoSQL Databases #Databases 185 social mentions

  2. High-performance, distributed memory object caching system
    Pricing:
    • Open Source
    As you'll have probably noticed in the Laravel documentation and in your project's config, Laravel supports a few different drivers for caching, including: Redis, DynamoDB, Memcached and the database. So, for example, if we were to set our cache driver in our .env file to CACHE_DRIVER=redis, when we run our code snippet above, the data would be stored in our Redis cache. However, if we were to change the driver to be CACHE_DRIVER=database, this would result in data being stored in the database instead.

    #Key-Value Database #Databases #NoSQL Databases 29 social mentions

  3. Fixer provides a free, simple, and lightweight API for current and historical foreign exchange rates and currency conversion. The API tracks rates published daily by the European Central Bank.
    This code will work as expected, but we've tightly coupled the ExchangeRatesApiIO class to the controller method. This means that if we decide to migrate over to using a different API, such as Fixer, in the future, we'll need to replace everywhere in the codebase that uses the ExchangeRatesApiIO class with our new class. As you can imagine, in large projects, this can be a slow and tedious task sometimes. So, to avoid this issue, instead of trying to instantiate a class in the controller method, we can use the bridge pattern to bind and resolve an interface instead.

    #APIs #Currency Exchange #Finance 20 social mentions

  4. Foreign exchange rates API with currency conversion.
    Pricing:
    • Open Source
    Let's imagine that we have a Laravel application that users can use for getting exchange rates and currency conversions. Now, let's say that our app uses an external API (exchangeratesapi.io) for getting the latest currency conversions.

    #APIs #Currency Exchange #Finance 19 social mentions

  5. Amazon DynamoDB is a fast and flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale. It is a fully managed cloud database and supports both document and key-value store models.
    As you'll have probably noticed in the Laravel documentation and in your project's config, Laravel supports a few different drivers for caching, including: Redis, DynamoDB, Memcached and the database. So, for example, if we were to set our cache driver in our .env file to CACHE_DRIVER=redis, when we run our code snippet above, the data would be stored in our Redis cache. However, if we were to change the driver to be CACHE_DRIVER=database, this would result in data being stored in the database instead.

    #Databases #NoSQL Databases #Relational Databases 103 social mentions

Discuss: Using the Bridge Pattern in Laravel

Log in or Post with